import { wrapBasename } from "../../modules/basename"; import { clsx } from 'clsx'; export const Nav = () => { const currentPath = typeof window !== 'undefined' ? window.location.pathname : '' const navItems = [ { name: '管理员设置', path: wrapBasename('/settings/') }, { name: '全局设置', path: wrapBasename('/settings/all/') }, ]; const isActive = (path: string) => { return currentPath === path } return ( ) }