// @ts-nocheck import { Form, useFormikContext } from 'formik'; import { Button, Classes, Intent } from '@blueprintjs/core'; import styled from 'styled-components'; import { FFormGroup, FSwitch } from '@/components'; import { MailNotificationForm } from '@/containers/SendMailNotification'; import { useReceiptMailDialogBoot } from './ReceiptMailDialogBoot'; import { saveInvoke } from '@/utils'; interface SendMailNotificationFormProps { onClose?: () => void; } export function ReceiptMailDialogFormContent({ onClose, }: SendMailNotificationFormProps) { const { mailOptions } = useReceiptMailDialogBoot(); const { isSubmitting } = useFormikContext(); const handleClose = () => { saveInvoke(onClose); }; return (
); } const AttachFormGroup = styled(FFormGroup)` background: #f8f9fb; margin-top: 0.6rem; padding: 4px 14px; border-radius: 5px; border: 1px solid #dcdcdd; `;