|
1 | 1 | import { useCallback, useEffect, useState, useRef } from "react"; |
2 | 2 | import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; |
3 | 3 | import { api, type AgentConfigResponse, type AgentConfigUpdateRequest } from "@/api/client"; |
4 | | -import { Button, SettingSidebarButton, Input, TextArea, Toggle, NumberStepper, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, cx } from "@/ui"; |
| 4 | +import { Button, SettingSidebarButton, TextArea, Toggle, NumberStepper, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, cx } from "@/ui"; |
5 | 5 | import { ModelSelect } from "@/components/ModelSelect"; |
6 | 6 | import { TagInput } from "@/components/TagInput"; |
7 | 7 | import { Markdown } from "@/components/Markdown"; |
@@ -882,28 +882,6 @@ function ConfigSectionEditor({ sectionId, label, description, detail, config, on |
882 | 882 |
|
883 | 883 | // -- Form Field Components -- |
884 | 884 |
|
885 | | -interface ConfigFieldProps { |
886 | | - label: string; |
887 | | - description: string; |
888 | | - value: string; |
889 | | - onChange: (value: string) => void; |
890 | | -} |
891 | | - |
892 | | -function ConfigField({ label, description, value, onChange }: ConfigFieldProps) { |
893 | | - return ( |
894 | | - <div className="flex flex-col gap-1.5"> |
895 | | - <label className="text-sm font-medium text-ink">{label}</label> |
896 | | - <p className="text-tiny text-ink-faint">{description}</p> |
897 | | - <Input |
898 | | - type="text" |
899 | | - value={value} |
900 | | - onChange={(e) => onChange(e.target.value)} |
901 | | - className="mt-1 border-app-line/50 bg-app-darkBox/30" |
902 | | - /> |
903 | | - </div> |
904 | | - ); |
905 | | -} |
906 | | - |
907 | 885 | interface ConfigToggleFieldProps { |
908 | 886 | label: string; |
909 | 887 | description: string; |
|
0 commit comments