import { Plus, MoreHorizontal } from 'lucide-react' import type { NavItemDef } from '../Layout/navItems' /** One circle of the dock: the card surface on a hairline ring, the icon in the secondary ink. */ const SLOT = 'flex h-8 w-8 flex-none items-center justify-center rounded-full bg-surface-card text-content-secondary shadow-[inset_0_0_0_1px_var(--border-faint)]' /** * A live, non-interactive mock of the mobile bottom dock that mirrors the * customizer's current split: Dashboard + bar items around the raised centre * "+", with a trailing "More" circle when items are demoted. Themed via base * tokens so it reads correctly in light and dark. */ export default function MobileNavPreview({ bar, hasMore, moreLabel, }: { bar: NavItemDef[] hasMore: boolean moreLabel: string }) { // Mirror MBottomNav's geometry: split the slots (bar items + the More slot) // around the centre so the "+" sits dead centre. const slotCount = bar.length + (hasMore ? 1 : 0) const splitAt = Math.ceil(slotCount / 2) const left = bar.slice(0, splitAt) const right = bar.slice(splitAt) const circle = (item: NavItemDef) => { const Icon = item.icon return ( ) } return (
{left.map(circle)} {right.map(circle)} {hasMore && ( )}
) }