"use client" import { useColorSections } from "@/hooks/color-sections" import { type translations } from "@/i18n/translations" import { cn } from "@/lib/utils" import { useRef } from "react" import { MobileNav } from "./mobile-nav" import { NavContainer } from "./nav-container" const linksOrder: Array = [ "hero", "about", "where", "when", "tickets", "accommodation", "food", "contact", ] export function MainpageNav({ t, }: { t: typeof translations.pl }) { const parent = useRef(null); useColorSections(parent); return ( <>
{linksOrder.map((value) => ( {t.nav[value]} ))}
) }