import { Star } from "@components/Stars.tsx"; import { IconArrowNarrowLeft, IconEdit, IconExternalLink, } from "@components/icons.tsx"; import Image from "@components/Image.tsx"; export function RecipeHero( { data, subline, backlink, editLink }: { backlink: string; subline?: string[]; editLink?: string; data: { meta?: { thumbnail?: string; image?: string; link?: string }; name: string; }; }, ) { const { meta: { image } = {} } = data; return (
{image && ( Recipe Banner )}
Back {editLink && ( )}

{data.name} {data.meta?.link && ( )}

{data.meta?.rating && }
{subline?.length && (
{subline.filter((s) => s && s?.length > 1).map((s) => { return {s}; })}
)}
); }