import { Dispatch, FC, SetStateAction } from 'react'; import { FiAlertTriangle } from 'react-icons/fi'; interface ErrorAlertProps { error: string; setError: Dispatch>; } const ErrorAlert: FC = ({ error, setError }) => { return (
{error}
); }; export default ErrorAlert;