import * as React from 'react'; import { Button, Popover } from 'antd'; import { Link } from 'bisheng/router'; import { FormattedMessage, useIntl } from 'react-intl'; import { PlayCircleFilled } from '@ant-design/icons'; import Background from './Background'; import { getLocalizedPathname } from '../../utils'; import Logo from './Logo'; import './index.less'; import SiteContext from '../../Layout/SiteContext'; export default function Banner() { const { isMobile } = React.useContext(SiteContext); const { locale } = useIntl(); const isZhCN = locale === 'zh-CN'; let qrNode: React.ReactElement | null = null; if (isMobile) { qrNode = ( mobile ); } else { qrNode = ( qr

} > mobile
); } return (

{isZhCN &&
{qrNode}
}
); }