import { Link, useMatchRoute } from "@tanstack/react-router"; import { motion } from "motion/react"; import { useTranslation } from "react-i18next"; import GlassSurface from "@components/surface/GlassSurface"; import classes from "./Navigation.module.css"; const ENTRANCE_DELAYS = [0.2, 0.1, 0, 0.1, 0.2]; const SPRING_ENTRANCE = { type: "spring" as const, stiffness: 400, damping: 20 }; const SPRING_HEIGHT = { type: "spring" as const, stiffness: 500, damping: 25 }; type NavItem = | { key: string; route: string; isMenu?: false } | { key: string; route?: undefined; isMenu: true }; const NAV_ITEMS: NavItem[] = [ { key: "nav.shop", route: "/shop/" }, { key: "nav.apiary", route: "/apiary/" }, { key: "nav.game", route: "/game/" }, { key: "nav.cashdesk", route: "/cashdesk/" }, { key: "nav.menu", isMenu: true }, ]; function IconPlaceholder() { return
; } type BarProps = { labelKey: string; active: boolean; entranceDelay: number; }; function NavBar({ labelKey, active, entranceDelay }: BarProps) { const { t } = useTranslation(); return (
{t(labelKey)}
); } export default function Navigation() { const matchRoute = useMatchRoute(); return ( ); }