@@ -42,4 +45,40 @@ function CollectionTypeSwitcher({ note }: { note: FNote }) {
/>
)
+}
+
+function BookProperties({ note, properties }: { note: FNote, properties: BookProperty[] }) {
+ return (
+
+ {properties.map(property => (
+
+ {mapPropertyView({ note, property })}
+
+ ))}
+
+ )
+}
+
+function mapPropertyView({ note, property }: { note: FNote, property: BookProperty }) {
+ switch (property.type) {
+ case "button":
+ return