website/app/routes/blog.tsx
2023-03-07 12:10:29 +01:00

20 lines
448 B
TypeScript

import { Link, Outlet } from "@remix-run/react";
import { useMatch } from "~/hooks/useMatch";
export default function () {
const { handle } = useMatch();
return (
<div className="h-fit w-full flex flex-col items-center">
{handle && (
<Link
className="mt-5 hover:text-[#e6c2bf] text-xl font-bold"
to={handle.to}
>
{handle.text}
</Link>
)}
<Outlet />
</div>
);
}