import { FunctionComponent, ReactNode } from 'react' import Button from './Button' interface EmptyStateProps { buttonText?: string icon: ReactNode onClickButton?: () => void desc?: string title: string } const EmptyState: FunctionComponent = ({ buttonText, icon, onClickButton, desc, title, }) => { return (
{icon}
{title}
{desc ? (

{desc}

) : null} {buttonText && onClickButton ? ( ) : null}
) } export default EmptyState