'use client'; import React, { useState } from 'react'; import Sidebar from '@/components/Sidebar'; import ProductTable, { Product } from '@/components/ProductTable'; const sampleProducts: Product[] = [ { id: 'PRD-001', name: 'Organic Butter', category: 'Dairy', subcategory: 'Butter & Spreads', quantity: 25, unit: 'kg', unitPrice: 4.50, vat: 9, supplier: 'DairyFresh Co.', lastUpdated: '2026-02-10', }, { id: 'PRD-002', name: 'All-Purpose Flour', category: 'Dry Goods', subcategory: 'Flours', quantity: 150, unit: 'kg', unitPrice: 0.85, vat: 9, supplier: 'GrainMasters', lastUpdated: '2026-02-09', }, { id: 'PRD-003', name: 'Atlantic Salmon Fillet', category: 'Seafood', subcategory: 'Fresh Fish', quantity: 12, unit: 'kg', unitPrice: 18.90, vat: 9, supplier: 'OceanHarvest', lastUpdated: '2026-02-11', }, { id: 'PRD-004', name: 'Madagascar Vanilla Extract', category: 'Dry Goods', subcategory: 'Spices & Extracts', quantity: 8, unit: 'L', unitPrice: 45.00, vat: 21, supplier: 'SpiceWorld Ltd', lastUpdated: '2026-02-08', }, { id: 'PRD-005', name: 'Fresh Avocados', category: 'Produce', subcategory: 'Fruits', quantity: 40, unit: 'pcs', unitPrice: 1.20, vat: 9, supplier: 'FreshFarm Direct', lastUpdated: '2026-02-11', }, ]; export default function ProductsPage() { const [isSidebarOpen, setIsSidebarOpen] = useState(false); return (
setIsSidebarOpen(false)} />
{/* Mobile Header */}

KitchenOS

{/* Spacer for centering */}
{/* Header */}

Product Management

{/* Filters and Search */}
{/* Search */}
{/* Filters Row */}
{/* Category Filter */} {/* Subcategory Filter */} {/* Bulk Actions */}
{/* Active Filters */}
Active filters:
Category: Dry Goods
{/* Product Table */} {/* Pagination */}

Showing 1 to{' '} 5 of{' '} 5 results

); }