Elffuss BraidHub

kikocis/continue public

9875eaa07e45 · 1.3 KiBRawPermalink
1import DocsIndexingStatuses from "../../components/mainInput/Lump/sections/docs/DocsSection";
2import { useAppSelector } from "../../redux/hooks";
3import IndexingProgress from "./IndexingProgress";
4
5export function IndexingSettingsSection() {
6 const config = useAppSelector((state) => state.config.config);
7 return (
8 <div className="flex flex-col gap-3 py-5">
9 <div>
10 <h3 className="mx-auto mb-1 mt-0 text-xl">@codebase index</h3>
11 <span className="text-lightgray w-3/4 text-xs">
12 Local embeddings of your codebase
13 </span>
14 {config.disableIndexing ? (
15 <div className="pb-2 pt-5">
16 <p className="py-1 text-center font-semibold">
17 Indexing is disabled
18 </p>
19 <p className="text-lightgray cursor-pointer text-center text-xs">
20 Open settings and toggle <code>Enable Indexing</code> to re-enable
21 </p>
22 </div>
23 ) : (
24 <IndexingProgress />
25 )}
26 </div>
27
28 <div className="mt-5">
29 <h3 className="mx-auto mb-1 mt-0 text-xl">@docs index</h3>
30 <span className="text-lightgray w-3/4 text-xs">
31 Local embeddings of your documentation sources
32 </span>
33 </div>
34 <DocsIndexingStatuses />
35 </div>
36 );
37}