1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 09:18:28 -04:00
jarv.is/components/page/PageTitle.tsx
2021-12-30 08:18:41 -05:00

18 lines
313 B
TypeScript

import { useRouter } from "next/router";
import styles from "./PageTitle.module.scss";
type Props = {
title: unknown;
};
export default function Content({ title }: Props) {
const router = useRouter();
return (
<h1 className={styles.title}>
<a href={router.asPath}>{title}</a>
</h1>
);
}