import CurrencySelect from './currency-select'; /** A planning interval is not the amount used in a financial calculation. */ export default function InvestmentBudgetRange({ values, onChange, disabled = false, }: { values: Record; disabled?: boolean; onChange?: (field: string, value: string) => void; }) { if ( !onChange && !values.investment_budget_min && !values.investment_budget_max ) return null; return (

Orçamento previsto

{onChange ? ( <>
{( [ 'investment_budget_min', 'investment_budget_max', ] as const ).map((field, index) => ( ))}
onChange('currency', value)} /> ) : (

{values.investment_budget_min || 'Mínimo por indicar'} –{' '} {values.investment_budget_max || 'Máximo por indicar'}{' '} {values.currency}

)}

Este intervalo orienta a preparação. O valor de cada cenário de investimento será indicado por si no simulador.

); }