import { Link, useNavigate, useParams, useSearchParams } from "react-router"; import { Fragment } from "react"; import { useTranslation } from "react-i18next"; import clsx from "clsx"; import ColorBackgroundUtils from "~/utils/shared/colors/ColorBackgroundUtils"; import ColorTextUtils from "~/utils/shared/colors/ColorTextUtils"; import ColorFocusUtils from "~/utils/shared/colors/ColorFocusUtils"; import ColorRingUtils from "~/utils/shared/colors/ColorRingUtils"; import ColorGradientUtils from "~/utils/shared/colors/ColorGradientUtils"; import { logoLight, logoDark } from "~/assets/brand/default"; import KnowledgeBaseUtils from "../../utils/KnowledgeBaseUtils"; import { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto"; interface Props { kb: KnowledgeBaseDto; } const withTitleAndDescription = true; export default function KbDocsHeader({ kb }: Props) { const { t } = useTranslation(); const navigate = useNavigate(); const params = useParams(); const [searchParams] = useSearchParams(); const logoAlt = t("knowledgeBase.header.logoAlt", { title: kb.title }); return (
{kb.description}