mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
24 lines
773 B
TypeScript
24 lines
773 B
TypeScript
import { useFormikContext } from 'formik';
|
|
import { SendViewPreviewHeader } from '../SendMailViewDrawer/SendMailViewPreviewHeader';
|
|
import { useEstimateSendMailBoot } from './EstimateSendMailBoot';
|
|
import { useSendEstimateMailSubject } from './hooks';
|
|
import { EstimateSendMailFormValues } from './_interfaces';
|
|
|
|
export function EstimateSendMailPreviewHeader() {
|
|
const subject = useSendEstimateMailSubject();
|
|
const { estimateMailState } = useEstimateSendMailBoot();
|
|
const {
|
|
values: { to, from },
|
|
} = useFormikContext<EstimateSendMailFormValues>();
|
|
|
|
return (
|
|
<SendViewPreviewHeader
|
|
companyName={estimateMailState?.companyName}
|
|
customerName={estimateMailState?.customerName}
|
|
subject={subject}
|
|
from={from}
|
|
to={to}
|
|
/>
|
|
);
|
|
}
|