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}
  • ))}
); }