18 lines
321 B
React
18 lines
321 B
React
|
|
import { Drawer } from 'antd';
|
||
|
|
|
||
|
|
export const Drawers = ({ open, placement, title, children, onClose }) => {
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<Drawer
|
||
|
|
title={title}
|
||
|
|
placement={placement}
|
||
|
|
onClose={onClose}
|
||
|
|
open={open}
|
||
|
|
key={placement}
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
</Drawer>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|