mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
33 lines
709 B
JavaScript
33 lines
709 B
JavaScript
import React, { lazy } from 'react';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const AccountDrawerContent = lazy(() => import('./AccountDrawerContent'));
|
|
|
|
/**
|
|
* Account drawer.
|
|
*/
|
|
function AccountDrawer({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: { accountId },
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
style={{ minWidth: '700px', maxWidth: '900px' }}
|
|
size={'65%'}
|
|
>
|
|
<DrawerSuspense>
|
|
<AccountDrawerContent name={name} accountId={accountId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(AccountDrawer);
|