quivr/frontend/app/brains-management/[brainId]/page.tsx

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;