1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 07:58:26 -04:00
jarv.is/components/page/PageTitle.tsx

20 lines
331 B
TypeScript

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