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

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

{t("about.memos-description")}

{customizedProfile.description || t("about.no-server-description")}

{t("about.powered-by")} memos v{profile.version}
{t("about.other-projects")}: Slash Sticky notes
); }; export default function showAboutSiteDialog(): void { generateDialog( { className: "about-site-dialog", dialogName: "about-site-dialog", }, AboutSiteDialog ); }