mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
system prompt tab in settings page
This commit is contained in:
1 parent
ada4c77093
commit
cdc671fca5
2 files changed
+15
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
export const SystemPromptsPane = () => {
|
||||
return <div className="space-y-4"></div>;
|
||||
};
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
faVolumeHigh,
|
||||
faCircleInfo,
|
||||
faRoute,
|
||||
faMessageCheck,
|
||||
} from "@fortawesome/pro-solid-svg-icons";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { MiscSettingsPane } from "./panes/MiscSettingsPane";
|
||||
@@ -14,6 +15,7 @@ import { AudioSettingsPane } from "./panes/AudioSettingsPane";
|
||||
import { AccountSettingsPane } from "./panes/AccountSettings/AccountSettingsPane";
|
||||
import { AboutSettingsPane } from "./panes/AboutSettingsPane";
|
||||
import { RouterPrioritySettingsPane } from "./panes/RouterPrioritySettingsPane";
|
||||
import { SystemPromptsPane } from "./panes/SystemPromptsPane";
|
||||
|
||||
interface SettingsModalProps {
|
||||
isOpen: boolean;
|
||||
@@ -26,6 +28,7 @@ type SettingsSection =
|
||||
| "general"
|
||||
| "accounts"
|
||||
| "alerts"
|
||||
| "system_prompts"
|
||||
| "about"
|
||||
| "router_priority";
|
||||
|
||||
@@ -42,6 +45,11 @@ export const SettingsModal = ({
|
||||
{ id: "general" as const, label: "General", icon: faCog },
|
||||
{ id: "accounts" as const, label: "Accounts", icon: faUser },
|
||||
{ id: "alerts" as const, label: "Alerts", icon: faVolumeHigh },
|
||||
{
|
||||
id: "system_prompts" as const,
|
||||
label: "System Prompts",
|
||||
icon: faMessageCheck,
|
||||
},
|
||||
{ id: "about" as const, label: "About", icon: faCircleInfo },
|
||||
{
|
||||
id: "router_priority" as const,
|
||||
@@ -64,6 +72,8 @@ export const SettingsModal = ({
|
||||
globalAccountLogoutCallback={globalAccountLogoutCallback}
|
||||
/>
|
||||
);
|
||||
case "system_prompts":
|
||||
return <SystemPromptsPane />;
|
||||
case "about":
|
||||
return <AboutSettingsPane />;
|
||||
case "router_priority":
|
||||
|
||||
Reference in new issue
Block a user