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
Jake Jarvis 41d2b8c64b
scss ➡️ vanilla css (#727)
* scss isn't worth the technical/mental overhead anymore

* try to translate my old Hugo pygments themes

* update lockfile

* consolidate .hljs classes
2022-01-07 16:17:14 -05:00

20 lines
330 B
TypeScript

import { useRouter } from "next/router";
import styles from "./PageTitle.module.css";
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;