"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import type { CommonContent } from "@/content/types"; import { type Locale } from "@/lib/i18n"; import { isComingSoonMode } from "@/lib/site"; type BottomNavProps = { locale: Locale; common: CommonContent; }; export default function BottomNav({ locale, common }: BottomNavProps) { const pathname = usePathname(); if (isComingSoonMode()) { return ( ); } const normalizedPath = pathname !== "/" && pathname.endsWith("/") ? pathname.slice(0, -1) : pathname; const homePath = `/${locale}`; const aboutPath = `/${locale}/about`; const contactPath = `/${locale}/contact`; const isHome = normalizedPath === homePath; const isAbout = normalizedPath === aboutPath || normalizedPath.startsWith(`${aboutPath}/`); const isContact = normalizedPath === contactPath || normalizedPath.startsWith(`${contactPath}/`); return ( ); }