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