import { Button } from '@gear-js/ui'; import EditSVG from '@/shared/assets/images/actions/edit.svg?react'; import { useModalState } from '@/hooks'; import { UpdateVoucherModal } from '../update-voucher-modal'; import { Voucher } from '../../types'; import styles from './update-voucher.module.scss'; type Props = { voucher: Voucher; onSubmit: () => void; }; const UpdateVoucher = ({ voucher, onSubmit }: Props) => { const [isModalOpen, openModal, closeModal] = useModalState(); return ( <>