// @bun
import{BookOpen as a}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function d({recipe:o}){if(!o)return e("div",{className:"flex flex-1 items-center justify-center rounded-2xl border border-border border-dashed",children:e("p",{className:"text-muted-foreground text-sm",children:"Select a recipe to view details."})});return r("article",{className:"space-y-4 rounded-2xl border border-border bg-card p-6",children:[r("header",{className:"flex flex-wrap items-center gap-3",children:[e(a,{className:"h-5 w-5 text-muted-foreground"}),r("div",{children:[e("h2",{className:"font-semibold text-xl",children:o.name}),e("p",{className:"text-muted-foreground text-sm",children:o.description})]})]}),r("section",{children:[e("h3",{className:"font-semibold text-muted-foreground text-sm uppercase tracking-wide",children:"Ingredients"}),e("ul",{className:"mt-2 list-disc space-y-1 pl-6 text-foreground text-sm",children:o.ingredients.map((t)=>r("li",{children:[t.name," \u2013 ",t.quantity]},t.id))})]}),r("section",{children:[e("h3",{className:"font-semibold text-muted-foreground text-sm uppercase tracking-wide",children:"Instructions"}),e("ol",{className:"mt-2 list-decimal space-y-2 pl-6 text-foreground text-sm",children:o.instructions.map((t)=>e("li",{children:t.content},t.id))})]})]})}export{d as RecipeDetail};
