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