import * as React from 'react'; import { Button, Space, Typography } from 'antd'; import useLocale from '../../../hooks/useLocale'; import useSiteToken from '../../../hooks/useSiteToken'; import { GroupMask } from './Group'; import { Link, useLocation } from 'dumi'; import * as utils from '../../../theme/utils'; const locales = { cn: { slogan: '助力设计开发者「更灵活」地搭建出「更美」的产品,让用户「快乐工作」~', start: '开始使用', designLanguage: '设计语言', }, en: { slogan: 'Help designers/developers building beautiful products more flexible and working with happiness', start: 'Getting Started', designLanguage: 'Design Language', }, }; export interface BannerProps { children?: React.ReactNode; } export default function Banner({ children }: BannerProps) { const [locale, lang] = useLocale(locales); const { pathname, search } = useLocation(); const { token } = useSiteToken(); const isZhCN = utils.isZhCN(pathname); return ( <> {/* Banner Placeholder Motion */}