diff --git a/src/components/Option/Prompt/index.tsx b/src/components/Option/Prompt/index.tsx index 141bdf6..f0d1c19 100644 --- a/src/components/Option/Prompt/index.tsx +++ b/src/components/Option/Prompt/index.tsx @@ -8,16 +8,12 @@ import { Input, Form, Switch, + Segmented } from "antd" import { Trash2, Pen, Computer, Zap } from "lucide-react" import { useState } from "react" import { useTranslation } from "react-i18next" -import { - deletePromptById, - getAllPrompts, - savePrompt, - updatePrompt -} from "@/db" +import { deletePromptById, getAllPrompts, savePrompt, updatePrompt } from "@/db" export const PromptBody = () => { const queryClient = useQueryClient() @@ -27,7 +23,9 @@ export const PromptBody = () => { const [createForm] = Form.useForm() const [editForm] = Form.useForm() const { t } = useTranslation("settings") - + const [selectedSegment, setSelectedSegment] = useState<"custom" | "copilot">( + "custom" + ) const { data, status } = useQuery({ queryKey: ["fetchAllPrompts"], queryFn: getAllPrompts @@ -103,8 +101,8 @@ export const PromptBody = () => { } }) - return ( -