import { setError } from "../../state/modals"; import { useDispatch, useSelector } from "react-redux"; import { Modal } from "./Modal"; import { AlertCircle } from "react-feather"; import { Button } from "./Button"; export const ErrorModal = () => { const dispatch = useDispatch(); const error = useSelector((state: any) => state.modals.error); function close() { dispatch(setError(null)); } if (error) return (

{error}

Support

); else return null; };