2023-07-24 15:17:21 +03:00
|
|
|
"use client";
|
|
|
|
|
2023-12-18 20:02:34 +03:00
|
|
|
import Link from "next/link";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { LuBrain, LuChevronLeftCircle } from "react-icons/lu";
|
|
|
|
|
|
|
|
import Button from "@/lib/components/ui/Button";
|
|
|
|
|
2023-07-25 11:13:00 +03:00
|
|
|
import { BrainManagementTabs } from "./components";
|
2023-12-18 20:02:34 +03:00
|
|
|
import { useBrainManagement } from "./hooks/useBrainManagement";
|
2023-07-25 10:54:34 +03:00
|
|
|
|
2023-07-24 15:17:21 +03:00
|
|
|
const BrainsManagement = (): JSX.Element => {
|
2023-12-18 20:02:34 +03:00
|
|
|
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>
|
|
|
|
);
|
2023-07-24 15:17:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BrainsManagement;
|