mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
39 lines
783 B
TypeScript
39 lines
783 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 EstimateCustomizeDrawerBody = React.lazy(
|
|
() => import('./EstimateCustomizeDrawerBody'),
|
|
);
|
|
|
|
/**
|
|
* Estimate customize drawer.
|
|
* @returns {React.ReactNode}
|
|
*/
|
|
function EstimateCustomizeDrawerRoot({
|
|
name,
|
|
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
payload={payload}
|
|
size={'calc(100% - 10px)'}
|
|
>
|
|
<DrawerSuspense>
|
|
<EstimateCustomizeDrawerBody />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export const EstimateCustomizeDrawer = R.compose(withDrawers())(
|
|
EstimateCustomizeDrawerRoot,
|
|
);
|