mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 07:58:26 -04:00
* scss isn't worth the technical/mental overhead anymore * try to translate my old Hugo pygments themes * update lockfile * consolidate .hljs classes
20 lines
330 B
TypeScript
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;
|