import * as React from 'react'; import { decode } from 'html-entities'; import { ComboboxWithLabel } from '@wcpos/components/src/combobox'; import useCurrencies, { CurrenciesProvider } from '../../../contexts/currencies'; /** * */ const CurrencySelect = ({ label, value = 'USD', onChange }) => { const allCurrencies = useCurrencies(); const options = allCurrencies.map((currency) => ({ label: `${currency.name} (${decode(currency.symbol)})`, value: currency.code, })); return ; }; /** * */ const CurrencySelectWithProvider = (props) => { return ( ); }; export default CurrencySelectWithProvider;