diff --git a/marketing-site/components/reader/ChapterKit.jsx b/marketing-site/components/reader/ChapterKit.jsx new file mode 100644 index 0000000..911856d --- /dev/null +++ b/marketing-site/components/reader/ChapterKit.jsx @@ -0,0 +1,60 @@ +import { collectChapterKit } from "../../data/sample-chapter"; + +export default function ChapterKit({ recipes }) { + const kit = collectChapterKit(recipes); + if (!kit.tools.length && !kit.files.length) return null; + + return ( +
+

What you need

+

+ {recipes.length} Try-it{recipes.length === 1 ? "" : "s"} on sample data. Nothing + from a live client file. +

+
+
+
Tools
+
+
    + {kit.tools.map((t) => ( +
  • {t}
  • + ))} +
+
+
+
+
Files
+
+
    + {kit.files.map((f) => ( +
  • {f}
  • + ))} +
+
+
+
+
Model
+
+
    + {kit.models.map((m) => ( +
  • {m}
  • + ))} +
+
+
+
+
Try-its
+
+
    + {kit.tryits.map((t) => ( +
  • + {t.id} · {t.time} · {t.cost} +
  • + ))} +
+
+
+
+
+ ); +}