mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-16 04:35:33 -04:00
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user