"use client"; import Link from "next/link"; import { LinkTypeItem } from "../_lib/types"; import Logo from "./Logo"; import clsx from "clsx"; import { usePathname } from "next/navigation"; import { LinkType } from "../api/linkType/route"; import { useAtom } from "jotai"; import { linkTypeAtom } from "../_lib/atom"; export default function SiderNav({ linkList }: { linkList: LinkType[] }) { const pathname = usePathname() console.log(pathname); const [selectType, setSelectType] = useAtom(linkTypeAtom) return (