import type { ReactNode } from "react"; type Props = { requestNumber: string; requestedBy: string; department: string; budgetCode: string; requestedDate: string; deliveryExpected: string; deliveryLocation: string; costCenter: string; glAccount: string; companyCode: string; onRequestedByChange: (v: string) => void; onDepartmentChange: (v: string) => void; onBudgetCodeChange: (v: string) => void; onRequestedDateChange: (v: string) => void; onDeliveryExpectedChange: (v: string) => void; onDeliveryLocationChange: (v: string) => void; onCostCenterChange: (v: string) => void; onGlAccountChange: (v: string) => void; onCompanyCodeChange: (v: string) => void; }; const INPUT = "mt-0.5 w-full rounded-md border border-outline-variant bg-surface-container-lowest px-2 py-1 text-[11px] leading-tight text-primary shadow-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"; function MiniField({ label, children, }: { label: string; children: ReactNode; }) { return (
{children}
); } export function RequestSummaryPanel({ requestNumber, requestedBy, department, budgetCode, requestedDate, deliveryExpected, deliveryLocation, costCenter, glAccount, companyCode, onRequestedByChange, onDepartmentChange, onBudgetCodeChange, onRequestedDateChange, onDeliveryExpectedChange, onDeliveryLocationChange, onCostCenterChange, onGlAccountChange, onCompanyCodeChange, }: Props) { return (

Request details

onRequestedDateChange(e.target.value)} className={INPUT} /> onRequestedByChange(e.target.value)} placeholder="Name or ID" className={INPUT} /> onDepartmentChange(e.target.value)} placeholder="Cost center / org unit" className={INPUT} />
onBudgetCodeChange(e.target.value)} placeholder="GL / WBS / budget reference" className={INPUT} />
onDeliveryExpectedChange(e.target.value)} className={INPUT} /> onDeliveryLocationChange(e.target.value)} placeholder="Location / area" className={INPUT} /> onCostCenterChange(e.target.value)} placeholder="Cost center" className={INPUT} /> onGlAccountChange(e.target.value)} placeholder="GL account" className={INPUT} /> onCompanyCodeChange(e.target.value)} placeholder="Company code" className={INPUT} />
); }