diff --git a/src/utils/RequiredLogin.tsx b/src/utils/RequiredLogin.tsx new file mode 100644 index 000000000..c30eb5e20 --- /dev/null +++ b/src/utils/RequiredLogin.tsx @@ -0,0 +1,11 @@ +import { Navigate, Outlet } from 'react-router-dom'; + +import { useAuth } from '@/hooks/useAuth'; + +export const RequiredLogin = () => { + const { authToken } = useAuth(); + if (!authToken) { + return ; + } + return ; +};