mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
40 lines
967 B
TypeScript
40 lines
967 B
TypeScript
// @ts-nocheck
|
|
import React, { lazy } from 'react';
|
|
import * as R from 'ramda';
|
|
import { Drawer, DrawerHeaderContent, DrawerSuspense } from '@/components';
|
|
import withDrawers from '@/containers/Drawer/withDrawers';
|
|
import { Position } from '@blueprintjs/core';
|
|
import { DRAWERS } from '@/constants/drawers';
|
|
|
|
const ChangeSubscriptionPlanContent = lazy(
|
|
() => import('./ChangeSubscriptionPlanContent'),
|
|
);
|
|
|
|
/**
|
|
* Account drawer.
|
|
*/
|
|
function ChangeSubscriptionPlanDrawer({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
size={'calc(100% - 5px)'}
|
|
position={Position.BOTTOM}
|
|
>
|
|
<DrawerSuspense>
|
|
<DrawerHeaderContent
|
|
name={DRAWERS.CHANGE_SUBSCARIPTION_PLAN}
|
|
title={'Change Subscription Plan'}
|
|
/>
|
|
<ChangeSubscriptionPlanContent />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default R.compose(withDrawers())(ChangeSubscriptionPlanDrawer);
|