// @ts-nocheck
import React, { lazy } from 'react';
import classNames from 'classnames';
import { T, Dialog, DialogSuspense } from '@/components';
import withDialogRedux from '@/components/DialogReduxConnect';
import { CLASSES } from '@/constants/classes';
import { compose } from '@/utils';
// Lazy loading the content.
const PdfPreviewDialogContent = lazy(() =>
import('./InvoicePdfPreviewDialogContent'),
);
/**
* Invoice PDF preview dialog.
*/
function InvoicePdfPreviewDialog({ dialogName, payload, isOpen }) {
return (
}
className={classNames(CLASSES.DIALOG_PDF_PREVIEW)}
autoFocus={true}
canEscapeKeyClose={true}
isOpen={isOpen}
style={{ width: '1000px' }}
>
);
}
export default compose(withDialogRedux())(InvoicePdfPreviewDialog);