feat: deal tags

This commit is contained in:
2025-10-19 12:12:28 +04:00
parent 9023b07c65
commit 3a1d8e23e3
25 changed files with 978 additions and 166 deletions

View File

@ -1,9 +1,13 @@
import { FC } from "react";
import { IconBlocks, IconEdit } from "@tabler/icons-react";
import { IconBlocks, IconEdit, IconTags } from "@tabler/icons-react";
import { Tabs } from "@mantine/core";
import {
GeneralTab,
ModulesTab,
} from "@/drawers/common/ProjectEditorDrawer/tabs";
import TagsTab from "@/drawers/common/ProjectEditorDrawer/tabs/TagsTab/TagsTab";
import { ProjectSchema } from "@/lib/client";
import styles from "../ProjectEditorDrawer.module.css";
import { GeneralTab, ModulesTab } from "@/drawers/common/ProjectEditorDrawer/tabs";
type Props = {
value: ProjectSchema;
@ -27,13 +31,21 @@ const ProjectEditorBody: FC<Props> = props => {
leftSection={<IconBlocks />}>
Модули
</Tabs.Tab>
<Tabs.Tab
value={"tags"}
leftSection={<IconTags />}>
Теги
</Tabs.Tab>
</Tabs.List>
<Tabs.Panel value="general">
<Tabs.Panel value={"general"}>
<GeneralTab {...props} />
</Tabs.Panel>
<Tabs.Panel value="modules">
<Tabs.Panel value={"modules"}>
<ModulesTab {...props} />
</Tabs.Panel>
<Tabs.Panel value={"tags"}>
<TagsTab {...props} />
</Tabs.Panel>
</Tabs>
);
};