import React from "react"; import currencies from "../../../application/pricing/currencies"; import InputSelector from "../input/InputSelector"; interface Props { className?: string; value: string; setValue: React.Dispatch>; } export default function CurrencyToggle({ className, value, setValue }: Props) { // function changeCurrency(currency: string) { // setValue(currency); // } return (
{/*
{currencies .filter((f) => !f.disabled) .map((currency, idx) => { return ( ); })}
*/} setValue(e?.toString() ?? "")} options={currencies .filter((f) => !f.disabled) .map((item) => { return { name: item.value.toUpperCase(), // + " - " + item.name, value: item.value, }; })} /> setValue(e?.toString() ?? "")} options={currencies .filter((f) => !f.disabled) .map((item) => { return { name: item.value.toUpperCase(), value: item.value, }; })} />
); }