feat: wip invoice customizer

This commit is contained in:
Ahmed Bouhuolia
2024-09-09 19:40:23 +02:00
parent 132c1dfdbe
commit dc18bde6be
18 changed files with 602 additions and 194 deletions

View File

@@ -0,0 +1,33 @@
// @ts-nocheck
import React from 'react';
import * as R from 'ramda';
import { Drawer, DrawerSuspense } from '@/components';
import withDrawers from '@/containers/Drawer/withDrawers';
const EstimateCustomizeContent = React.lazy(
() => import('./EstimateCustomizeContent'),
);
/**
* Estimate customize drawer.
* @returns {React.ReactNode}
*/
function EstimateCustomizeDrawerRoot({
name,
// #withDrawer
isOpen,
payload: {},
}) {
return (
<Drawer isOpen={isOpen} name={name} size={'100%'}>
<DrawerSuspense>
<EstimateCustomizeContent />
</DrawerSuspense>
</Drawer>
);
}
export const EstimateCustomizeDrawer = R.compose(withDrawers())(
EstimateCustomizeDrawerRoot,
);