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

{desc}

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