"use client" import { Home, MonitorOne, Movie, Setting, Terminal, Toolkit } from "@icon-park/react" import { Button, cn } from "@heroui/react" import { usePathname, useRouter } from "next/navigation" import type { ReactNode } from "react" // import { platform } from "@tauri-apps/plugin-os" import { appStore, setVersion } from "@/store/app" import { useSnapshot } from "valtio" interface SideButtonProps { route: string className?: string children?: ReactNode } const SideButton = ({ route, className, children, ...rest }: SideButtonProps & React.ButtonHTMLAttributes) => { const router = useRouter() const path = usePathname() return ( ) } const Avatar = () => { const router = useRouter() const path = usePathname() return (
router.push("/users")} className={cn( "w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800", path.startsWith("/users") && "shadow-sm" )} > avatar
) } const SideBar = () => { appStore.start() const { version } = useSnapshot(appStore.state) return (

版本号

) } export default SideBar