import { EmptyState as ChakraEmptyState, VStack } from '@chakra-ui/react'; import * as React from 'react'; export interface EmptyStateProps extends ChakraEmptyState.RootProps { title: string; description?: string; icon?: React.ReactNode; } export const EmptyState = React.forwardRef(function EmptyState(props, ref) { const { title, description, icon, children, ...rest } = props; return ( {icon && {icon}} {description ? ( {title} {description} ) : ( {title} )} {children} ); });