mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
33 lines
729 B
TypeScript
33 lines
729 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 ReceiptCustomizeDrawerBody = React.lazy(
|
|
() => import('./ReceiptCustomizeDrawerBody'),
|
|
);
|
|
|
|
/**
|
|
* Receipt customize drawer.
|
|
* @returns {React.ReactNode}
|
|
*/
|
|
function ReceiptCustomizeDrawerRoot({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer isOpen={isOpen} name={name} size={'100%'} payload={payload}>
|
|
<DrawerSuspense>
|
|
<ReceiptCustomizeDrawerBody />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export const ReceiptCustomizeDrawer = R.compose(withDrawers())(
|
|
ReceiptCustomizeDrawerRoot,
|
|
);
|