// Copyright 2024, Command Line Inc. // SPDX-License-Identifier: Apache-2.0 import * as React from "react"; import * as jotai from "jotai"; import { Provider } from "jotai"; import * as rx from "rxjs"; import { clsx } from "clsx"; import { TabContent } from "@/app/tab/tab"; import { v4 as uuidv4 } from "uuid"; import { globalStore, atoms } from "@/store/global"; import "/public/style.less"; const App = () => { return ( ); }; const Tab = ({ tab }: { tab: TabData }) => { const [activeTab, setActiveTab] = jotai.useAtom(atoms.activeTabId); return (
setActiveTab(tab.tabid)}> {tab.name}
); }; const TabBar = () => { const [activeTab, setActiveTab] = jotai.useAtom(atoms.activeTabId); const tabs = jotai.useAtomValue(atoms.tabsAtom); return (
{tabs.map((tab, idx) => { return ; })}
); }; const Workspace = () => { const activeTabId = jotai.useAtomValue(atoms.activeTabId); return (
); }; const AppInner = () => { return (
); }; export { App };