website/app/routes/blog.tsx
2024-09-28 13:14:55 +02:00

35 lines
748 B
TypeScript

import type { MetaFunction } from "@remix-run/node";
import { Link } from "@remix-run/react";
import { Outlet } from "react-router-dom";
import { LinkWrapper } from "~/components/LinkWrapper";
import { useMatch } from "~/hooks/useMatch";
export const meta: MetaFunction = () => {
return [
{
title: "Nullndr's blog",
},
{
property: "og:title",
content: "Nullndr's blog",
},
{
property: "description",
content: "Another blog by Nullndr.",
},
];
};
export default function BlogLayout() {
const { handle } = useMatch();
return (
<div className="space-y-6">
<LinkWrapper>
<Link to={handle.to}>{handle.text}</Link>
</LinkWrapper>
<Outlet />
</div>
);
}