import { useTranslation } from 'react-i18next' import { FormGroup, ControlLabel } from 'react-bootstrap' import { usePaymentContext } from '../../../context/payment-context' type CouponCodeProps = { value: string onChange: (e: React.ChangeEvent) => void } function CouponCode(props: CouponCodeProps) { const { t } = useTranslation() const { addCoupon } = usePaymentContext() const handleApplyCoupon = (e: React.FocusEvent) => { addCoupon(e.target.value) } return ( {t('coupon_code')} ) } export default CouponCode