import { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; import { getIsUnauthorized, setIsUnauthorized } from "@/redux/reducer/globalStateSlice"; import { useDispatch, useSelector } from "react-redux"; const UnauthorizedModal = () => { const dispatch = useDispatch(); const open = useSelector(getIsUnauthorized); const handleOk = () => { dispatch(setIsUnauthorized(false)); }; return ( e.preventDefault()}> Unauthorized You do not have permission to access this resource. Please log in or contact the administrator. OK ); }; export default UnauthorizedModal;