import { useTranslation } from "react-i18next"; import { useChatContext } from "@/lib/context"; export const ChatHeader = (): JSX.Element => { const { t } = useTranslation(["chat"]); const { messages } = useChatContext(); if (messages.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")}

); };