import React, { FunctionComponent } from 'react'; import { KOSDrawerProps } from './KOSDrawerProps'; import { Box, Drawer, Typography, Avatar, Icon, IconButton, } from '@mui/material/'; import Image from 'mui-image'; const KOSDrawer: FunctionComponent = (props) => { const { open, onClose, icon, title, subTitle, total, color, iconType } = props; const useAvatar = iconType === 'avatar'; return ( close {useAvatar ? ( ) : ( {icon} )} {title} {subTitle} {total} {props.children} ); }; KOSDrawer.defaultProps = { open: true, icon: 'delivery_dining', title: 'titulo ', subTitle: 'Subtitulo', total: 4, color: '#011A5B', iconType: 'icon', }; export default KOSDrawer;