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; const selectedCostCenter = costCenters.find((center) => center.id === selectedCostCenterId); return (
{t('printModal.unlimitedNoBudget', 'Unlimited – no budget limit is set.')}
)}