import { Alert } from "flowbite-react";
import { FC } from "react";
import { HiInformationCircle } from "react-icons/hi";

type props = {
  message: string;
};
const ErrorMessages: FC<props> = ({ message = "" }) => {
  return (
    <Alert color="failure" icon={HiInformationCircle}>
      <span className="font-medium">Info alert! </span>
      {message}
    </Alert>
  );
};

export default ErrorMessages;
