"use client"; // PEP-207: the project of the chats is picked from a list on top, not from a row of tabs that // doesn't fit on a phone. import { useRouter } from "next/navigation"; import { useT } from "@/components/I18n"; import { NativeSelect } from "@/components/ui/input"; export function ChatSwitch({ current, options }: { current: string; options: Array<{ slug: string; label: string }> }) { const router = useRouter(); const t = useT(); return ( router.push(`/chats/${e.target.value}?list=1`)} className="h-9 w-full"> {options.map((o) => ( ))} ); }