import React from "react"; import clsx from "clsx"; import useBaseUrl from "@docusaurus/useBaseUrl"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useNonepressThemeConfig } from "@nullbot/docusaurus-theme-nonepress/client"; import "./styles.css"; import ThemedImage from "@theme/ThemedImage"; export type Message = { msg: string; position?: "left" | "right"; monospace?: boolean; }; function MessageBox({ msg, position = "left", monospace = false, }: Message): JSX.Element { const { navbar: { logo }, } = useNonepressThemeConfig(); const sources = { light: useBaseUrl(logo!.src), dark: useBaseUrl(logo!.srcDark || logo!.src), }; const isRight = position === "right"; return (