mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
32 lines
678 B
JavaScript
32 lines
678 B
JavaScript
import React, { lazy } from 'react';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const PaymentReceiveDrawerContent = lazy(() =>
|
|
import('./PaymentReceiveDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* payment receive drawer.
|
|
*/
|
|
function PaymentReceiveDrawer({
|
|
name,
|
|
//#withDrawer
|
|
isOpen,
|
|
payload: { paymentReceiveId },
|
|
|
|
}) {
|
|
|
|
return (
|
|
<Drawer isOpen={isOpen} name={name}>
|
|
<DrawerSuspense>
|
|
<PaymentReceiveDrawerContent paymentReceiveId={paymentReceiveId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(PaymentReceiveDrawer);
|