mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 17:50:29 -04:00
18 lines
313 B
TypeScript
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>
|
|
);
|
|
}
|