export const ProductLowStockWarning = ({ stock }: { stock: number }) => { if (stock > 3) { return null; } if (stock === 0) { return
Out of stock
; } return (
Only {stock} left in stock
); };