import React, { FC, useState } from 'react'; import Dropdown, { DropdownOption } from '../../blocks/Dropdown'; import { getAmountWithCurrency } from '../../helpers/priceHelper'; import * as R from 'ramda'; import css from './index.module.css'; import LogoRawSVG from '../../assets/icons/logo_raw_no_border.svg'; import classNames from 'classnames'; interface FormGiftCardProps { onSelect: (amount) => void; isPrint: boolean; currencyCode: string; value: number | string; availableAmounts: Array; translations: any; } const FormGiftCard: FC = ({ onSelect, isPrint, currencyCode, value, availableAmounts, translations, }) => { const options: Array = availableAmounts.map(item => { return { value: item, name: getAmountWithCurrency(item, currencyCode), }; }); return (
{currencyCode} {value}
mila.com
{ onSelect(e.target.value); }} /> {!isPrint && ( {translations.shipping} )}
); }; export default FormGiftCard;