import { Icons } from './Icons'; function StockCard({ item, onAdd, disabled }: { item: any, onAdd?: () => void, disabled?: boolean }) { const hasTier1 = item.bulk1Threshold > 0 && item.bulk1Price > 0; const hasTier2 = item.bulk2Threshold > 0 && item.bulk2Price > 0; const hasLimit = item.maxStock !== null && item.maxStock !== undefined; const remaining = item.remainingStock; const stockPct = hasLimit ? Math.max(0, (remaining / item.maxStock) * 100) : 100; return (
{item.description}
{hasLimit && (
Premium smoked meats by the Kilogram.
Bulk discounts applied automatically at checkout.
Terms of Service & Ordering Policy
{config?.termsOfService || `To secure your order, a ${config?.depositPercentage || 30}% non-refundable deposit is required upfront before smoking begins. Payments can be made via PayID or Cash. The remaining balance is payable upon pickup.`}
Final Deposit Deadline
{config?.finalDepositDate ? formatDate(config.finalDepositDate) : 'TBA'}
Scheduled Cook Day
{config?.cookDay ? new Date(config.cookDay).toLocaleDateString('en-AU', { weekday: 'long', day: 'numeric', month: 'long' }) : 'TBA'}
Nothing in the smoker right now.
}{faq.answer}