refactor: rename and reorganize Search component imports for better structure
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
import { IDBPDatabase } from "idb";
|
|
||||||
import { useRef, useState, Dispatch, useContext } from "react";
|
import { useRef, useState, Dispatch, useContext } from "react";
|
||||||
|
|
||||||
import { ChatStore } from "@/types/chatstore";
|
import { ChatStore } from "@/types/chatstore";
|
||||||
import { MessageDetail } from "./chatgpt";
|
import { MessageDetail } from "../chatgpt";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
@@ -16,16 +15,14 @@ import {
|
|||||||
import {
|
import {
|
||||||
Pagination,
|
Pagination,
|
||||||
PaginationContent,
|
PaginationContent,
|
||||||
PaginationEllipsis,
|
|
||||||
PaginationItem,
|
PaginationItem,
|
||||||
PaginationLink,
|
|
||||||
PaginationNext,
|
PaginationNext,
|
||||||
PaginationPrevious,
|
PaginationPrevious,
|
||||||
} from "@/components/ui/pagination";
|
} from "@/components/ui/pagination";
|
||||||
|
|
||||||
import { Input } from "./components/ui/input";
|
import { Input } from "./ui/input";
|
||||||
import { AppContext } from "./pages/App";
|
import { AppContext } from "../pages/App";
|
||||||
import { Button } from "./components/ui/button";
|
import { Button } from "./ui/button";
|
||||||
import { SearchIcon } from "lucide-react";
|
import { SearchIcon } from "lucide-react";
|
||||||
|
|
||||||
interface ChatStoreSearchResult {
|
interface ChatStoreSearchResult {
|
||||||
@@ -26,8 +26,6 @@ import {
|
|||||||
WalletIcon,
|
WalletIcon,
|
||||||
ArrowUpDownIcon,
|
ArrowUpDownIcon,
|
||||||
ScissorsIcon,
|
ScissorsIcon,
|
||||||
SearchIcon,
|
|
||||||
CogIcon,
|
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { AppContext } from "@/pages/App";
|
import { AppContext } from "@/pages/App";
|
||||||
import { models } from "@/types/models";
|
import { models } from "@/types/models";
|
||||||
@@ -35,9 +33,8 @@ import { getTotalCost } from "@/utils/totalCost";
|
|||||||
import { Tr } from "@/translate";
|
import { Tr } from "@/translate";
|
||||||
|
|
||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
import { Button } from "./ui/button";
|
import Search from "@/components/Search";
|
||||||
import Search from "@/search";
|
import Settings from "@/components/Settings";
|
||||||
import Settings from "./Settings";
|
|
||||||
|
|
||||||
const Navbar: React.FC = () => {
|
const Navbar: React.FC = () => {
|
||||||
const ctx = useContext(AppContext);
|
const ctx = useContext(AppContext);
|
||||||
|
|||||||
@@ -21,12 +21,10 @@ import {
|
|||||||
} from "../types/chatstore";
|
} from "../types/chatstore";
|
||||||
import Message from "@/message";
|
import Message from "@/message";
|
||||||
import { models } from "@/types/models";
|
import { models } from "@/types/models";
|
||||||
import Settings from "@/components/Settings";
|
|
||||||
import { AddImage } from "@/addImage";
|
import { AddImage } from "@/addImage";
|
||||||
import { ListAPIs } from "@/listAPIs";
|
import { ListAPIs } from "@/listAPIs";
|
||||||
import { ListToolsTempaltes } from "@/listToolsTemplates";
|
import { ListToolsTempaltes } from "@/listToolsTemplates";
|
||||||
import { autoHeight } from "@/textarea";
|
import { autoHeight } from "@/textarea";
|
||||||
import Search from "@/search";
|
|
||||||
import Templates from "@/components/Templates";
|
import Templates from "@/components/Templates";
|
||||||
import VersionHint from "@/components/VersionHint";
|
import VersionHint from "@/components/VersionHint";
|
||||||
import StatusBar from "@/components/StatusBar";
|
import StatusBar from "@/components/StatusBar";
|
||||||
|
|||||||
Reference in New Issue
Block a user