import { useTranslation } from "react-i18next"; import { useGlobalStore } from "@/store/module"; import Icon from "./Icon"; import { generateDialog } from "./Dialog"; import GitHubBadge from "./GitHubBadge"; type Props = DialogProps; const AboutSiteDialog: React.FC = ({ destroy }: Props) => { const { t } = useTranslation(); const globalStore = useGlobalStore(); const profile = globalStore.state.systemStatus.profile; const customizedProfile = globalStore.state.systemStatus.customizedProfile; const handleCloseBtnClick = () => { destroy(); }; return ( <>

{t("common.about")} {customizedProfile.name}

{customizedProfile.description || "No description"}

Powered by memos v{profile.version}
Other projects: Sticky notes Star history
); }; export default function showAboutSiteDialog(): void { generateDialog( { className: "about-site-dialog", dialogName: "about-site-dialog", }, AboutSiteDialog ); }