mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-22 02:41:51 +03:00
2f68b445db
Issue https://github.com/StanGirard/quivr/issues/1908 Demo: https://github.com/StanGirard/quivr/assets/63923024/3be5d58c-4052-4c06-8434-920d4db0365e
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import { useTranslation } from "react-i18next";
|
|
import { LuBrain, LuChevronLeftCircle } from "react-icons/lu";
|
|
|
|
import Button from "@/lib/components/ui/Button";
|
|
|
|
import { BrainManagementTabs } from "./components";
|
|
import { useBrainManagement } from "./hooks/useBrainManagement";
|
|
|
|
const BrainsManagement = (): JSX.Element => {
|
|
const { t } = useTranslation(["translation"]);
|
|
const { brain } = useBrainManagement();
|
|
|
|
return (
|
|
<div className="flex flex-col w-full p-5 lg:p-20 bg-highlight">
|
|
<div>
|
|
<Link href="/brains-management">
|
|
<Button variant="tertiary" className="p-0">
|
|
<LuChevronLeftCircle className="text-primary" />
|
|
{t("previous")}
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
<div className="w-full justify-center flex items-center gap-2">
|
|
<LuBrain size={25} className="text-primary" />
|
|
<span className="text-3xl font-semibold">{brain?.name}</span>
|
|
</div>
|
|
<BrainManagementTabs />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default BrainsManagement;
|