/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { QuestionCircleOutlined } from '@ant-design/icons'; import { css } from '@emotion/css'; import { observer } from '@formily/reactive-react'; import { parseHTML } from '@nocobase/utils/client'; import { Dropdown, Menu, Popover } from 'antd'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { DropdownVisibleContext, usePlugin, useToken } from '..'; import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider'; /** * @note If you want to change here, Note the Setting block on the mobile side */ const SettingsMenu: React.FC<{ redirectUrl?: string; }> = () => { const { t } = useTranslation(); const data = useCurrentAppInfo(); const { token } = useToken(); // 是否是简体中文 const isSimplifiedChinese = data?.data?.lang === 'zh-CN'; const items = [ { key: 'nocobase', disabled: true, label: (