import { Drawer } from 'antd' import type { DrawerProps } from 'antd' import type { PropsWithChildren, FC } from 'react' import styles from './index.less' type AnimateContentProps = { visible: boolean onVisibleChange: (visible: boolean) => void disableBreadcrumb?: boolean } & Omit const AnimateContent: FC> = ({ visible, onVisibleChange, disableBreadcrumb = false, children, ...others }) => { return (
onVisibleChange(false)} mask={false} width="calc(100vw - 256px)" style={{ right: '24px', top: `${!disableBreadcrumb ? 72 + 50 : 72}px` }} contentWrapperStyle={{ height: `calc(100vh - 96px ${!disableBreadcrumb ? '- 50px' : ''})` }} // closeIcon={}> > {visible ? children : null}
) } export default AnimateContent