import React from 'react'; import MyIcon from '../Icon'; import { Drawer, DrawerBody, DrawerHeader, DrawerOverlay, DrawerContent, DrawerCloseButton, DrawerContentProps, Flex, Image, Box } from '@chakra-ui/react'; import { useLoading } from '../../../hooks/useLoading'; import Avatar from '../Avatar'; type Props = DrawerContentProps & { onClose: () => void; iconSrc?: string; title?: any; isLoading?: boolean; }; const MyRightDrawer = ({ onClose, iconSrc, title, maxW = ['90vw', '500px'], children, isLoading, ...props }: Props) => { const { Loading } = useLoading(); return ( {iconSrc && } {title} {children} ); }; export default MyRightDrawer;