
type Error = {
    message?: string
    status?: boolean
}

export default function ErrorMsg({message, status}:Error) {
  return (
    <div className={`${!message && 'hidden'} w-full`}>
        <p className={`${status ? 'text-green-600' : 'text-red-500'} pt-2 text-base text-center`}>
            {message && message}
        </p>
    </div>
  )
}
