mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
31 lines
657 B
JavaScript
31 lines
657 B
JavaScript
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const ContactDetailDrawerContent = React.lazy(() =>
|
|
import('./ContactDetailDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Contact detail drawer.
|
|
*/
|
|
function ContactDetailDrawer({
|
|
name,
|
|
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: { contactId },
|
|
}) {
|
|
return (
|
|
<Drawer isOpen={isOpen} name={name} size={'750px'}>
|
|
<DrawerSuspense>
|
|
<ContactDetailDrawerContent contact={contactId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(ContactDetailDrawer);
|