"use client"; import { TbChevronDown } from "react-icons/tb"; import Link from "next/link"; import { usePathname } from "next/navigation"; import classNames from "classnames"; import { API_COLLECTIONS } from "@/utils/datas/api_collections"; import { Method } from "@/components/method"; export const EditorSidebar = ({ collections, open, onCollections, }: { collections: string[]; open: boolean; onCollections: (collections: string[]) => void; }) => { const pathname = usePathname(); const handleSetActiveCollection = (key: string) => { if (collections.includes(key)) { onCollections(collections.filter((col) => col !== key)); } else { onCollections([...collections, key]); } }; return (
Give Feedback See HUB API documentation
); };