import React from 'react'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "../ui/table"; import { Input } from "../ui/input"; import { Button } from "../ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "../ui/select"; import { Plus } from "lucide-react"; export function LabelsList() { const labels = [ { id: 1, location: 'Location A', labelCategory: 'Prep', productCategory: 'Meat', product: 'Chicken', template: '2"x2" Basic', labelType: 'Defrost', lastEdited: '2025.12.03.11:45', hasError: false }, { id: 2, location: 'Location A', labelCategory: 'Prep', productCategory: 'Meat', product: 'Chicken', template: '2"x2" Basic', labelType: 'Opened/Preped', lastEdited: '2025.12.03.11:45', hasError: false }, { id: 3, location: 'Location A', labelCategory: 'Prep', productCategory: 'Meat', product: 'Chicken', template: '2"x2" Basic', labelType: 'Heated', lastEdited: '2025.12.03.11:45', hasError: false }, { id: 4, location: 'Location A', labelCategory: "Grab'n'Go", productCategory: 'Sandwich', product: 'Chicken Sandwich', template: '2"x6" G\'n\'G', labelType: '', lastEdited: '2025.12.03.11:45', hasError: true }, ]; return (
{/* Controls: Search, Location, Bulk Actions & New Label — 单行 + 圆角 + 细边框 + 统一高度 40px */}
{/* Warning Text */}
One or more of your labels are missing fields from their templates (! ! ! 1 in total).
{/* Table */}
Location Label Category Product Category Product Template Label Type Last Edited {labels.map((label) => ( {label.location} {label.labelCategory} {label.productCategory} {label.product} {label.template} {label.hasError && ( ! ! ! )} {label.labelType || '-'} {label.lastEdited} ))}
); }