import React from 'react'; import type { AmountInputCurrency } from '../currency'; import { SelectAddon } from '../../SelectAddon'; import styles from './CurrencySelect.module.css'; import { useTranslate } from '../../../hooks/useTranslate'; type Props = { options: AmountInputCurrency[]; value: AmountInputCurrency; isDisabled?: boolean; onSelect: (selectedCurrency: AmountInputCurrency) => void; }; export const CurrencySelect = ({ options, value, isDisabled = false, onSelect, }: Props) => { const t = useTranslate(); return ( ( {selectedItem.key} )} aria-label={t('selectCurrency')} /> ); };