import type { RecipeCardImage } from '@/lib/recipe-card'; import PrintCardButton from './PrintCardButton'; interface RecipeCardPanelProps { title: string; images: RecipeCardImage[]; } const buttonClass = 'inline-flex items-center gap-2 rounded-lg border border-gray-300 dark:border-gray-600 px-4 py-2 text-sm font-medium text-gray-800 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors'; export default function RecipeCardPanel({ title, images }: RecipeCardPanelProps) { const doubleSided = images.length > 1; return (

A 5×7 in card at 300 DPI. Print it on 5×7 photo paper or card stock {doubleSided ? ', with the front and back on either side.' : '.'}

{images.map((image) => (
{`${title} {doubleSided &&
{image.label}
}
))}
{images.map((image) => ( {doubleSided ? `Download ${image.label.toLowerCase()}` : 'Download PNG'} ))} image.url)} className={buttonClass} />
); }