mirror of
https://github.com/StanGirard/quivr.git
synced 2025-01-03 08:45:26 +03:00
b5e2d5ad9c
# Description - Implement Icon Component - Implement TextButton Component - Change Add Brain Button And Set it in the Search Page - Fix Errors When sending empty message - Change EsLint rules ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
34 lines
971 B
TypeScript
34 lines
971 B
TypeScript
"use client";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
import { LuBrain } from "react-icons/lu";
|
|
|
|
import { AddBrainModal } from "@/lib/components/AddBrainModal";
|
|
|
|
import { BrainsTabs } from "./components/BrainsTabs/BrainsTabs";
|
|
|
|
const BrainsManagement = (): JSX.Element => {
|
|
const { t } = useTranslation("chat");
|
|
|
|
return (
|
|
<div className="flex flex-col flex-1 bg-highlight">
|
|
<div className="w-full h-full p-6 flex flex-col flex-1 overflow-auto">
|
|
<div className="w-full mb-10">
|
|
<div className="flex flex-row justify-center items-center gap-2">
|
|
<LuBrain size={20} className="text-primary" />
|
|
<span className="capitalize text-2xl font-semibold">
|
|
{t("brains")}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<BrainsTabs />
|
|
</div>
|
|
<div className="w-full flex justify-center py-4">
|
|
<AddBrainModal />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default BrainsManagement;
|