import type { LoaderFunction } from "@remix-run/node"; import { Outlet, useCatch, useMatches } from "@remix-run/react"; import { requireLoggedIn } from "~/utils/auth.server"; import Footer from "~/features/core/components/footer"; export const loader:LoaderFunction = async ({ request }) => { return requireLoggedIn(request); } export default function __App() { const hideFooter = false; const matches = useMatches(); // matches[0].handle // console.log("matches", matches); return (