"use client"; import { useUiText } from "@suphark/ui/components/shared/ui-text"; import { InputGroup, InputGroupAddon, InputGroupInput, } from "@suphark/ui/components/ui/input-group"; import { cn } from "@suphark/ui/lib/utils"; import { Search } from "lucide-react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { type ReactNode, useMemo, useState } from "react"; import { type AppNavItem, isNavActive } from "./types"; /** * เมนูย่อยซ้ายของแท็บที่ active (แบบ Clerk Configure: User & authentication / SSO / …) * รองรับ 2 ชั้น (item → items = หัวกลุ่มย่อย); จอแคบเป็น e.target.value && router.push(e.target.value)} aria-label={typeof title === "string" ? title : (text.nav?.sub ?? "เมนูย่อย")} > {!current && } {sections.map((s, si) => ( // biome-ignore lint/suspicious/noArrayIndexKey: กลุ่มคงที่ {s.items.map((i) => ( ))} ))} {/* เดสก์ท็อป */} ); }