"use client"; import { useState } from "react"; import { EditorHeader } from "./header"; import { EditorSidebar } from "./sidebar"; import { EditorMain } from "./main"; import { ApiRoute } from "@/utils/type"; import { API_COLLECTIONS } from "@/utils/datas/api_collections"; export const Editor = ({ children }: any) => { const [collections, setCollections] = useState(["search"]); const [endpoint, setEndpoint] = useState( API_COLLECTIONS[0].endpoints[0] ); return (
{/* {endpoint && ( )} */} {children}
); };