import { Box, BoxProps, Heading, Icon, useColorModeValue } from '@chakra-ui/react'; import { ReactNode } from 'react'; interface WidgetProps extends BoxProps { title: string; icon?: any; children: ReactNode; } export const Widget = ({ title, icon, children, ...rest }: WidgetProps) => { return ( {icon && } {title} {children} ); };