"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Separator } from "../ui/separator"; export function DocsLang({ en, zh }: { en: string; zh: string }) { const pathname = usePathname(); return (
English
)} {pathname !== zh ? ( 简体中文 ) : (简体中文
)}