Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import CatalogueChoiceSelect from './catalogue-choice-select';
|
||||
import { currencyChoices } from '@/lib/catalogue-choice';
|
||||
export default function CurrencySelect({
|
||||
codes,
|
||||
...props
|
||||
}: {
|
||||
codes?: readonly string[];
|
||||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
label?: string;
|
||||
id?: string;
|
||||
disabled?: boolean;
|
||||
required?: boolean;
|
||||
error?: string;
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<CatalogueChoiceSelect
|
||||
{...props}
|
||||
label={props.label ?? 'Moeda'}
|
||||
options={currencyChoices(codes)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user