mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-21 02:11:35 +03:00
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
|
import { Content, List, Root } from "@radix-ui/react-tabs";
|
||
|
|
||
|
import { BrainTabTrigger } from "./components";
|
||
|
import { useBrainManagementTabs } from "./hooks/useBrainManagementTabs";
|
||
|
|
||
|
export const BrainManagementTabs = (): JSX.Element => {
|
||
|
const { selectedTab, setSelectedTab } = useBrainManagementTabs();
|
||
|
|
||
|
return (
|
||
|
<Root
|
||
|
className="shadow-md min-h-[50%] dark:shadow-primary/25 hover:shadow-xl transition-shadow rounded-xl overflow-hidden bg-white dark:bg-black border border-black/10 dark:border-white/25 p-4"
|
||
|
defaultValue="settings"
|
||
|
>
|
||
|
<List className="flex justify-between" aria-label="Manage your brain">
|
||
|
<BrainTabTrigger
|
||
|
selected={selectedTab === "settings"}
|
||
|
label="Settings"
|
||
|
value="settings"
|
||
|
onChange={setSelectedTab}
|
||
|
/>
|
||
|
<BrainTabTrigger
|
||
|
selected={selectedTab === "people"}
|
||
|
label="People"
|
||
|
value="people"
|
||
|
onChange={setSelectedTab}
|
||
|
/>
|
||
|
<BrainTabTrigger
|
||
|
selected={selectedTab === "knowledge"}
|
||
|
label="Knowledge"
|
||
|
value="knowledge"
|
||
|
onChange={setSelectedTab}
|
||
|
/>
|
||
|
</List>
|
||
|
<Content value="settings">
|
||
|
<p>coming soon</p>
|
||
|
</Content>
|
||
|
</Root>
|
||
|
);
|
||
|
};
|