mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-23 00:00:31 +00:00
37 lines
735 B
TypeScript
37 lines
735 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 BrandingTemplatesContent = React.lazy(
|
|
() => import('./BrandingTemplatesContent'),
|
|
);
|
|
|
|
/**
|
|
* Invoice customize drawer.
|
|
* @returns {React.ReactNode}
|
|
*/
|
|
function BrandingTemplatesDrawerRoot({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
payload={payload}
|
|
>
|
|
<DrawerSuspense>
|
|
<BrandingTemplatesContent />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export const BrandingTemplatesDrawer = R.compose(withDrawers())(
|
|
BrandingTemplatesDrawerRoot,
|
|
);
|