mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
33 lines
706 B
TypeScript
33 lines
706 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import * as R from 'ramda';
|
|
import { Drawer, DrawerSuspense } from '@/components';
|
|
import withDrawers from '@/containers/Drawer/withDrawers';
|
|
|
|
const InvoiceCustomizeContent = React.lazy(
|
|
() => import('./InvoiceCustomizeContent'),
|
|
);
|
|
|
|
/**
|
|
* Invoice customize drawer.
|
|
* @returns {React.ReactNode}
|
|
*/
|
|
function InvoiceCustomizeDrawerRoot({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: {},
|
|
}) {
|
|
return (
|
|
<Drawer isOpen={isOpen} name={name} size={'100%'}>
|
|
<DrawerSuspense>
|
|
<InvoiceCustomizeContent />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export const InvoiceCustomizeDrawer = R.compose(withDrawers())(
|
|
InvoiceCustomizeDrawerRoot,
|
|
);
|