"use client"; import * as React from "react"; import { cn } from "@/lib/utils"; import { href, type Nav, type Tab } from "@/lib/nav"; import { NAV, MOBILE } from "./nav-items"; /** * The phone layout. A bottom bar is what a native app does, and it puts the * targets under the thumb instead of at the top of a tall screen. Respects the * home-indicator inset, which the previous layout did not. */ export function TabBar({ nav, go, badges, visible, }: { nav: Nav; go: (n: Nav) => void; badges: Partial>; visible: (t: Tab) => boolean; }) { const items = NAV.filter((n) => MOBILE.includes(n.tab) && visible(n.tab)); return ( ); }