Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | 2x 2x 2x 2x 28x 2x 10x 2x 2x 8x 8x 8x 8x 8x 2x 2x 2x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 12x 10x 50x 50x 50x | import SubPage from "@/components/page/SubPage/SubPage";
import { useAuth } from "@/hooks/useAuth";
import { Knowledge } from "@/objects/Knowledge";
import { encodeResourceId } from "@/components/detail/useResourceId";
import { APP_ROUTES, ROUTE_PARAMS } from "@/routes/const";
import { errorDetail } from "@/util/apiError";
import { useApiHandler } from "@/services/useApiHandler";
import {
AlertCircle,
BookCopy,
Check,
Database,
File as FileIcon,
FileStack,
Globe,
Info,
Loader2,
Network,
Plug,
Upload,
X,
} from "lucide-react";
import React, { useCallback, useRef, useState } from "react";
import { useNavigate, useSearchParams } from "react-router-dom";
import PrefillNote from "./recommendations/PrefillNote";
import { describePrefill, sourcePrefill } from "./recommendations/prefill";
import WebSourceConfigForm from "./WebSourceConfigForm";
import {
WEB_SOURCE_DEFAULTS,
WebSourceForm,
validateWebForm,
webConfigFromForm,
} from "./webSource";
import {
SectionCard,
} from "@/components/detail";
// ─── Source types ─────────────────────────────────────────────────────────────
const SOURCE_TYPES = [
{
value: "file",
label: "File Upload",
description: "Upload documents directly from your device.",
icon: FileStack,
},
{
value: "web",
label: "Web / URL",
description:
"Crawl web pages or sitemaps and keep a snapshot each time they change.",
icon: Globe,
},
{
value: "db",
label: "Database",
description: "Query and index records from a SQL or NoSQL database.",
icon: Database,
},
{
value: "api",
label: "API",
description: "Pull data from an external REST API endpoint.",
icon: Plug,
},
{
value: "graph",
label: "Knowledge Graph",
description: "Build an interactive entity-relationship graph.",
icon: Network,
},
] as const;
type SourceType = (typeof SOURCE_TYPES)[number]["value"];
// ─── Source config shapes ─────────────────────────────────────────────────────
interface DbConfig {
connection_string: string;
query: string;
}
interface ApiConfig {
endpoint: string;
auth_header: string;
auth_value: string;
}
// ─── Primitives ───────────────────────────────────────────────────────────────
const inputBase =
"w-full px-3 py-2 text-sm rounded-lg border border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-500 transition-colors";
const errorBase =
"w-full px-3 py-2 text-sm rounded-lg border border-red-300 dark:border-red-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-red-200 dark:focus:ring-red-900 transition-colors";
const FieldLabel: React.FC<{
label: string;
description?: string;
required?: boolean;
}> = ({ label, description, required }) => (
<div className="mb-1.5">
<div className="text-sm font-medium text-gray-700 dark:text-gray-300">
{label}
{required && <span className="ml-0.5 text-red-500">*</span>}
</div>
{description && (
<p className="text-xs text-gray-400 dark:text-gray-500 mt-0.5">
{description}
</p>
)}
</div>
);
const CharCount: React.FC<{ value: string; max: number }> = ({
value,
max,
}) => (
<div
className={`text-right text-xs mt-1 ${
value.length > max ? "text-red-500" : "text-gray-400 dark:text-gray-500"
}`}
>
{value.length} / {max}
</div>
);
// ─── File upload zone ─────────────────────────────────────────────────────────
const ACCEPTED_TYPES =
".pdf,.txt,.md,.csv,.json,.xml,.docx,.doc,.xlsx,.xls,.pptx,.ppt,.html,.htm,.rst,.yaml,.yml";
function formatBytes(bytes: number): string {
if (bytes < 1024) return `${bytes} B`;
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
}
const FileUploadZone: React.FC<{
files: File[];
onChange: (files: File[]) => void;
hasError?: boolean;
}> = ({ files, onChange, hasError }) => {
const inputRef = useRef<HTMLInputElement>(null);
const [dragging, setDragging] = useState(false);
const addFiles = useCallback(
(incoming: FileList | null) => {
if (!incoming) return;
const next = [...files];
Array.from(incoming).forEach((f) => {
if (!next.find((x) => x.name === f.name && x.size === f.size))
next.push(f);
});
onChange(next);
},
[files, onChange],
);
const removeFile = (i: number) =>
onChange(files.filter((_, idx) => idx !== i));
return (
<div className="space-y-3">
<div
onDragOver={(e) => {
e.preventDefault();
setDragging(true);
}}
onDragLeave={() => setDragging(false)}
onDrop={(e) => {
e.preventDefault();
setDragging(false);
addFiles(e.dataTransfer.files);
}}
onClick={() => inputRef.current?.click()}
className={`flex flex-col items-center justify-center gap-3 px-6 py-10 rounded-xl border-2 border-dashed cursor-pointer transition-colors ${
hasError
? "border-red-300 dark:border-red-700 bg-red-50 dark:bg-red-950/20"
: dragging
? "border-gray-900 dark:border-gray-100 bg-gray-50 dark:bg-gray-700/50"
: "border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700/30 hover:border-gray-400 dark:hover:border-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700/50"
}`}
>
<div
className={`p-3 rounded-full ${dragging ? "bg-gray-200 dark:bg-gray-600" : "bg-gray-100 dark:bg-gray-700"}`}
>
<Upload
className={`size-6 ${dragging ? "text-gray-900 dark:text-gray-100" : "text-gray-400 dark:text-gray-500"}`}
/>
</div>
<div className="text-center">
<p className="text-sm font-medium text-gray-700 dark:text-gray-300">
{dragging
? "Drop files here"
: "Drag & drop files, or click to browse"}
</p>
<p className="text-xs text-gray-400 dark:text-gray-500 mt-0.5">
PDF, DOCX, TXT, CSV, MD, HTML and more · Max 5 MB per file
</p>
</div>
<input
ref={inputRef}
type="file"
multiple
accept={ACCEPTED_TYPES}
className="hidden"
onChange={(e) => addFiles(e.target.files)}
/>
</div>
{files.length > 0 && (
<div className="rounded-lg border border-gray-200 dark:border-gray-600 overflow-hidden divide-y divide-gray-100 dark:divide-gray-700">
{files.map((file, i) => (
<div
key={i}
className="flex items-center gap-3 px-4 py-2.5 bg-white dark:bg-gray-800"
>
<FileIcon className="size-4 text-gray-400 dark:text-gray-500 shrink-0" />
<div className="flex-1 min-w-0">
<p className="text-sm text-gray-800 dark:text-gray-200 truncate font-medium">
{file.name}
</p>
<p className="text-xs text-gray-400 dark:text-gray-500">
{formatBytes(file.size)}
</p>
</div>
<button
type="button"
onClick={(e) => {
e.stopPropagation();
removeFile(i);
}}
className="p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors"
>
<X className="size-3.5 text-gray-400 dark:text-gray-500" />
</button>
</div>
))}
</div>
)}
</div>
);
};
// ─── Source config forms ──────────────────────────────────────────────────────
const DbConfigForm: React.FC<{
config: DbConfig;
onChange: (c: DbConfig) => void;
errors: Partial<Record<keyof DbConfig, string>>;
}> = ({ config, onChange, errors }) => (
<div className="space-y-5">
<div>
<FieldLabel
label="Connection String"
description="Full database connection URI."
required
/>
<input
type="text"
value={config.connection_string}
onChange={(e) =>
onChange({ ...config, connection_string: e.target.value })
}
placeholder="e.g. postgresql://user:pass@host/db"
className={
(errors.connection_string ? errorBase : inputBase) +
" font-mono text-xs"
}
/>
{errors.connection_string && (
<p className="text-xs text-red-500 mt-1">{errors.connection_string}</p>
)}
</div>
<div>
<FieldLabel
label="Query"
description="SQL query or collection name to extract records from."
required
/>
<textarea
value={config.query}
onChange={(e) => onChange({ ...config, query: e.target.value })}
placeholder="e.g. SELECT id, content FROM documents WHERE active = true"
rows={4}
className={
(errors.query ? errorBase : inputBase) +
" resize-none font-mono text-xs"
}
/>
{errors.query && (
<p className="text-xs text-red-500 mt-1">{errors.query}</p>
)}
</div>
</div>
);
const ApiConfigForm: React.FC<{
config: ApiConfig;
onChange: (c: ApiConfig) => void;
errors: Partial<Record<keyof ApiConfig, string>>;
}> = ({ config, onChange, errors }) => (
<div className="space-y-5">
<div>
<FieldLabel
label="Endpoint URL"
description="The API endpoint that returns the data to be indexed."
required
/>
<input
type="text"
value={config.endpoint}
onChange={(e) => onChange({ ...config, endpoint: e.target.value })}
placeholder="e.g. https://api.example.com/v1/documents"
className={
(errors.endpoint ? errorBase : inputBase) + " font-mono text-xs"
}
/>
{errors.endpoint && (
<p className="text-xs text-red-500 mt-1">{errors.endpoint}</p>
)}
</div>
<div className="grid grid-cols-2 gap-4">
<div>
<FieldLabel label="Auth Header" description="e.g. Authorization" />
<input
type="text"
value={config.auth_header}
onChange={(e) => onChange({ ...config, auth_header: e.target.value })}
placeholder="Authorization"
className={inputBase}
/>
</div>
<div>
<FieldLabel label="Auth Value" description="e.g. Bearer <token>" />
<input
type="password"
value={config.auth_value}
onChange={(e) => onChange({ ...config, auth_value: e.target.value })}
placeholder="Bearer ..."
className={inputBase}
/>
</div>
</div>
</div>
);
// ─── Form state & errors ──────────────────────────────────────────────────────
interface FormState {
name: string;
description: string;
source_type: SourceType;
files: File[];
web: WebSourceForm;
db: DbConfig;
api: ApiConfig;
}
interface FormErrors {
name?: string;
description?: string;
files?: string;
web?: Partial<Record<keyof WebSourceForm, string>>;
db?: Partial<Record<keyof DbConfig, string>>;
api?: Partial<Record<keyof ApiConfig, string>>;
}
function validate(data: FormState): FormErrors {
const errors: FormErrors = {};
if (!data.name.trim()) errors.name = "Name is required.";
else if (data.name.trim().length < 2)
errors.name = "Name must be at least 2 characters.";
else if (data.name.trim().length > 50)
errors.name = "Name must be 50 characters or fewer.";
if (!data.description.trim()) errors.description = "Description is required.";
if (data.source_type === "file" && data.files.length === 0)
errors.files = "Upload at least one document.";
if (data.source_type === "web") {
const web = validateWebForm(data.web);
if (Object.keys(web).length) errors.web = web;
}
if (data.source_type === "db") {
const db: Partial<Record<keyof DbConfig, string>> = {};
if (!data.db.connection_string.trim())
db.connection_string = "Connection string is required.";
if (!data.db.query.trim()) db.query = "Query is required.";
if (Object.keys(db).length) errors.db = db;
}
if (data.source_type === "api" && !data.api.endpoint.trim())
errors.api = { endpoint: "Endpoint URL is required." };
return errors;
}
// ─── NewKnowledge ─────────────────────────────────────────────────────────────
const NewKnowledge: React.FC = () => {
const { getApiHandler } = useApiHandler();
const { user } = useAuth();
const navigate = useNavigate();
// A recommendation's "Add as a website source" fills the form in, once.
const [params] = useSearchParams();
const [prefill] = useState(() => sourcePrefill(params));
const startsAsWeb = params.get("type") === "web" || !!prefill.web.urls;
const [data, setData] = useState<FormState>({
name: prefill.name ?? "",
description: "",
source_type: startsAsWeb ? "web" : "file",
files: [],
web: { ...WEB_SOURCE_DEFAULTS, ...prefill.web },
db: { connection_string: "", query: "" },
api: { endpoint: "", auth_header: "", auth_value: "" },
});
const [errors, setErrors] = useState<FormErrors>({});
const [submitError, setSubmitError] = useState<string | null>(null);
const [submitting, setSubmitting] = useState(false);
const [uploadProgress, setUploadProgress] = useState<string | null>(null);
const set = <K extends keyof FormState>(key: K, value: FormState[K]) => {
setData((prev) => ({ ...prev, [key]: value }));
setErrors((prev) => ({ ...prev, [key]: undefined }));
setSubmitError(null);
};
const handleSubmit = async () => {
const errs = validate(data);
if (Object.keys(errs).length > 0) {
setErrors(errs);
return;
}
setSubmitting(true);
setSubmitError(null);
try {
const api = getApiHandler();
let source_config: Record<string, unknown> = {};
if (data.source_type === "web") {
source_config = { ...webConfigFromForm(data.web) };
} else if (data.source_type === "db") {
source_config = {
connection_string: data.db.connection_string.trim(),
query: data.db.query.trim(),
};
} else if (data.source_type === "api") {
source_config = {
endpoint: data.api.endpoint.trim(),
...(data.api.auth_header.trim() && {
auth_header: data.api.auth_header.trim(),
}),
...(data.api.auth_value.trim() && {
auth_value: data.api.auth_value.trim(),
}),
};
} else if (data.source_type === "graph") {
source_config = { node_count: 0, edge_count: 0 };
}
const created = await api.knowledge_router.new({
name: data.name.trim(),
description: data.description.trim(),
source_type: data.source_type,
source_config,
} as unknown as Knowledge);
if (!created) throw new Error("Failed to create knowledge base.");
if (data.source_type === "file" && data.files.length > 0) {
setUploadProgress(
`Uploading ${data.files.length} file${data.files.length !== 1 ? "s" : ""}…`,
);
await api.knowledge_router.uploadDocuments(created.id, data.files);
}
// A website source starts crawling as it is created; its own page is
// where that crawl, and the pages it finds, show up.
void navigate(
data.source_type === "web"
? APP_ROUTES.USER.KNOWLEDGE.id.replace(
ROUTE_PARAMS.KNOWLEDGE.id,
encodeResourceId(created.id),
)
: APP_ROUTES.USER.knowledge,
);
} catch (e: unknown) {
setSubmitError(
errorDetail(e, "Something went wrong. Please try again."),
);
} finally {
setSubmitting(false);
setUploadProgress(null);
}
};
const selectedSourceMeta = SOURCE_TYPES.find(
(s) => s.value === data.source_type,
)!;
return (
<SubPage title="New Knowledge Base">
<div className="max-w-2xl space-y-4">
<PrefillNote changes={describePrefill(prefill)} />
{/* Details */}
<SectionCard variant="form"
icon={BookCopy}
title="Details"
description="Name and describe this knowledge base so it's easy to find and understand."
>
<div>
<FieldLabel
label="Name"
description="A short, descriptive name."
required
/>
<input
type="text"
value={data.name}
onChange={(e) => set("name", e.target.value)}
placeholder="e.g. Medical Reports"
className={errors.name ? errorBase : inputBase}
/>
<CharCount value={data.name} max={50} />
{errors.name && (
<p className="text-xs text-red-500 mt-1">{errors.name}</p>
)}
</div>
<div>
<FieldLabel
label="Description"
description="Describe the contents and intended use of this knowledge base."
required
/>
<textarea
value={data.description}
onChange={(e) => set("description", e.target.value)}
placeholder="e.g. Historical patient records for medical recall tasks."
rows={3}
className={
(errors.description ? errorBase : inputBase) + " resize-none"
}
/>
{errors.description && (
<p className="text-xs text-red-500 mt-1">{errors.description}</p>
)}
</div>
</SectionCard>
{/* Source type */}
<SectionCard variant="form"
icon={Database}
title="Source Type"
description="Where the data for this knowledge base comes from."
>
<div className="grid grid-cols-2 gap-2">
{SOURCE_TYPES.map((st) => {
const Icon = st.icon;
const active = data.source_type === st.value;
return (
<button
key={st.value}
type="button"
onClick={() => set("source_type", st.value)}
className={`flex items-start gap-3 p-3 rounded-lg border text-left transition-colors ${
active
? "border-gray-900 dark:border-gray-100 bg-gray-50 dark:bg-gray-700"
: "border-gray-200 dark:border-gray-600 hover:border-gray-300 dark:hover:border-gray-500"
}`}
>
<div
className={`p-1.5 rounded-md shrink-0 ${
active
? "bg-gray-900 dark:bg-gray-100"
: "bg-gray-100 dark:bg-gray-700"
}`}
>
<Icon
className={`size-4 ${
active
? "text-white dark:text-gray-900"
: "text-gray-500 dark:text-gray-400"
}`}
/>
</div>
<div>
<div
className={`text-sm font-medium ${active ? "text-gray-900 dark:text-gray-100" : "text-gray-700 dark:text-gray-300"}`}
>
{st.label}
</div>
<div className="text-xs text-gray-400 dark:text-gray-500 mt-0.5 leading-relaxed">
{st.description}
</div>
</div>
</button>
);
})}
</div>
</SectionCard>
{/* Source configuration */}
<SectionCard variant="form"
icon={selectedSourceMeta.icon}
title="Configuration"
description={`Configure the ${selectedSourceMeta.label.toLowerCase()} source for this knowledge base.`}
>
{data.source_type === "file" && (
<>
<FieldLabel
label="Documents"
description="Upload one or more files. You can also add more documents later."
required
/>
<FileUploadZone
files={data.files}
onChange={(files) => set("files", files)}
hasError={!!errors.files}
/>
{errors.files && (
<p className="text-xs text-red-500">{errors.files}</p>
)}
</>
)}
{data.source_type === "web" && (
<WebSourceConfigForm
config={data.web}
onChange={(web) => set("web", web)}
errors={errors.web ?? {}}
/>
)}
{data.source_type === "db" && (
<DbConfigForm
config={data.db}
onChange={(db) => set("db", db)}
errors={errors.db ?? {}}
/>
)}
{data.source_type === "api" && (
<ApiConfigForm
config={data.api}
onChange={(api) => set("api", api)}
errors={errors.api ?? {}}
/>
)}
{data.source_type === "graph" && (
<div className="rounded-lg bg-teal-50 dark:bg-teal-950/30 border border-teal-200 dark:border-teal-800 px-4 py-4 flex items-start gap-3">
<Network className="size-4 text-teal-600 dark:text-teal-400 shrink-0 mt-0.5" />
<div>
<p className="text-sm font-medium text-teal-700 dark:text-teal-300">
Graph canvas ready after creation
</p>
<p className="text-xs text-teal-600 dark:text-teal-400 mt-1">
After creating this knowledge base, open it to build your
entity-relationship graph using the interactive canvas. Add
entities, draw relationships, and save to make the graph
queryable by agents.
</p>
</div>
</div>
)}
<div className="rounded-lg bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800 px-4 py-3 flex items-start gap-2">
<Info className="size-3.5 text-blue-600 dark:text-blue-400 shrink-0 mt-0.5" />
<p className="text-xs text-blue-600 dark:text-blue-400">
{data.source_type === "file"
? "Files are stored securely and encrypted at rest. You can add or remove documents at any time."
: data.source_type === "graph"
? "Graph data is stored in a graph database and queryable by agents via the query_knowledge_graph tool."
: "Source configuration is stored securely. Connection credentials are encrypted at rest."}
</p>
</div>
</SectionCard>
{/* Submit error */}
{submitError && (
<div className="flex items-center gap-2 px-4 py-3 rounded-lg bg-red-50 dark:bg-red-950/40 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm">
<AlertCircle className="size-4 shrink-0" />
{submitError}
</div>
)}
{/* Actions */}
<div className="flex items-center justify-end gap-3 pt-2 pb-6">
<button
type="button"
onClick={() => void navigate(APP_ROUTES.USER.knowledge)}
className="px-4 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors"
>
Cancel
</button>
<button
type="button"
onClick={() => void handleSubmit()}
disabled={submitting}
className="flex items-center gap-1.5 px-4 py-2 rounded-lg bg-gray-900 dark:bg-white text-white dark:text-gray-900 text-sm font-medium hover:opacity-80 disabled:opacity-50 transition-opacity"
>
{submitting ? (
<>
<Loader2 className="size-4 animate-spin" />
{uploadProgress ?? "Creating…"}
</>
) : (
<>
<Check className="size-4" />
Create Knowledge Base
</>
)}
</button>
</div>
</div>
</SubPage>
);
};
export default NewKnowledge;
|