import { useTranslation } from 'react-i18next'; import type { CostCenterSummary } from '../../api/client'; interface CostCenterSelectProps { costCenters: CostCenterSummary[]; selectedCostCenterId: number | null; onChange: (costCenterId: number | null) => void; } export function CostCenterSelect({ costCenters, selectedCostCenterId, onChange, }: CostCenterSelectProps) { const { t } = useTranslation(); if (costCenters.length === 0) return null; return (
); }