Files
bigcapital/src/containers/Sales/PaymentReceives/PaymentDetails/PaymentReceiveDrawer.js
2021-09-21 17:13:53 +02:00

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);