'use client'; type Option = { label: string; value: string }; type SiteSelectorProps = { options: Option[]; // e.g. [{label: 'Timo… (Installation)', value: 'PROJ-0008'}, …] selectedValue: string | null; // the selected project "name" (siteId) or null onChange: (value: string) => void; // called with the selected value label?: string; disabled?: boolean; }; const SiteSelector = ({ options, selectedValue, onChange, label = 'Select Site:', disabled = false, }: SiteSelectorProps) => { const isEmpty = !options || options.length === 0; return (