@@ -7,6 +7,16 @@ import {
77 ChevronRight ,
88} from "lucide-react" ;
99import { useTranslation } from "react-i18next" ;
10+ import { isNil } from "lodash-es" ;
11+ import { Popover , PopoverButton , PopoverPanel } from "@headlessui/react" ;
12+ import {
13+ useAsyncEffect ,
14+ useDebounce ,
15+ useKeyPress ,
16+ usePagination ,
17+ useReactive ,
18+ } from "ahooks" ;
19+ import clsx from "clsx" ;
1020
1121import { useAppStore } from "@/stores/appStore" ;
1222import logoImg from "@/assets/icon.svg" ;
@@ -17,18 +27,8 @@ import FontIcon from "@/components/Common/Icons/FontIcon";
1727import { useChatStore } from "@/stores/chatStore" ;
1828import { useShortcutsStore } from "@/stores/shortcutsStore" ;
1929import { Post } from "@/api/axiosRequest" ;
20- import { Popover , PopoverButton , PopoverPanel } from "@headlessui/react" ;
21- import {
22- useAsyncEffect ,
23- useDebounce ,
24- useKeyPress ,
25- usePagination ,
26- useReactive ,
27- } from "ahooks" ;
28- import clsx from "clsx" ;
2930import NoDataImage from "../Common/NoDataImage" ;
3031import PopoverInput from "../Common/PopoverInput" ;
31- import { isNil } from "lodash-es" ;
3232
3333interface AssistantListProps {
3434 assistantIDs ?: string [ ] ;
@@ -41,6 +41,7 @@ interface State {
4141export function AssistantList ( { assistantIDs = [ ] } : AssistantListProps ) {
4242 const { t } = useTranslation ( ) ;
4343 const { connected } = useChatStore ( ) ;
44+
4445 const isTauri = useAppStore ( ( state ) => state . isTauri ) ;
4546 const setAssistantList = useConnectStore ( ( state ) => state . setAssistantList ) ;
4647 const currentService = useConnectStore ( ( state ) => state . currentService ) ;
0 commit comments