quivr/frontend/app/brains-management/page.tsx
Antoine Dewez 66ffc6b9aa
feat(panel): added (#2088)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## 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):
2024-01-25 12:44:24 -08:00

34 lines
967 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-white">
<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;