Add blog page

This commit is contained in:
2024-04-25 04:41:05 +02:00
parent 1b8d84b469
commit 9364264dc1
4 changed files with 55 additions and 1 deletions

16
components/TabItem.tsx Normal file
View File

@@ -0,0 +1,16 @@
"use client";
import { usePathname } from "next/navigation";
export default async function TabItem({ targetPath, text }: { targetPath: string, text: string}) {
const currentPath = usePathname();
return (
<a
href={targetPath}
className={currentPath === targetPath ? "underline" : ""}
>
{text}
</a>
);
}