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

{title}

{desc ? (

{desc}

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