DFiP_Budget_planing/web/src/components/common/DenominationSelect.jsx

15 lines
603 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { FormControl, MenuItem, Select } from '@mui/material';
const DenominationSelect = ({ value, onChange, minWidth = 140 }) => (
<FormControl size='small' sx={{ minWidth }}>
<Select value={value} onChange={(event) => onChange(event.target.value)} aria-label='Разрядность значений'>
<MenuItem value='rub'>в руб.</MenuItem>
<MenuItem value='thousand'>в тыс. руб.</MenuItem>
<MenuItem value='million'>в млн. руб.</MenuItem>
<MenuItem value='billion'>в млрд. руб.</MenuItem>
</Select>
</FormControl>
);
export default DenominationSelect;