
import { FC } from "react";

type Props = {
  message: any;
  show: any;
};

export const ErrorComponent: FC<Props> = ({ message, show }) => {
  return (
    show && (
      <p className="w-full text-right text-xs text-red-500 font-medium mt-2">
        * {message}
      </p>
    )
  );
};
