import { useTranslation } from "react-i18next"; import { useChatContext } from "@/lib/context"; export const ChatHeader = (): JSX.Element => { const { t } = useTranslation(["chat"]); const { history } = useChatContext(); if (history.length !== 0) { return (

{t("chat_title_intro")}{" "} {t("brains")}

); } return (

{t("chat_title_intro")}{" "} {t("brains")} {" !! "}
{t("empty_brain_title_prefix")}{" "} {t("brain")}{" "} {t("empty_brain_title_suffix")}

); };