mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
39 lines
789 B
TypeScript
39 lines
789 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from '@/components';
|
|
import withDrawers from '@/containers/Drawer/withDrawers';
|
|
|
|
import { compose } from '@/utils';
|
|
|
|
const QuickCretaeItemDrawerContent = React.lazy(() =>
|
|
import('./QuickCreateItemDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Quick create item.
|
|
*/
|
|
function QuickCreateItemDrawer({
|
|
// #ownProps
|
|
name,
|
|
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
style={{ minWidth: '800px', maxWidth: '1000px' }}
|
|
size={'72%'}
|
|
payload={payload}
|
|
>
|
|
<DrawerSuspense>
|
|
<QuickCretaeItemDrawerContent itemName={payload.name} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(QuickCreateItemDrawer);
|