import { Box, Flex, Button, Image } from '@chakra-ui/react'; import React, { useState } from 'react'; import { useTranslation } from 'next-i18next'; import { feConfigs } from '@/web/common/system/staticData'; import { useSystemStore } from '@/web/common/system/useSystemStore'; import MyIcon from '@/components/Icon'; import { useRouter } from 'next/router'; const Hero = () => { const router = useRouter(); const { t } = useTranslation(); const { isPc, gitStar } = useSystemStore(); const [showVideo, setShowVide] = useState(false); return ( {t('home.slogan')} {t('home.desc')} {feConfigs?.show_git && ( )} setShowVide(true)} /> {showVideo && ( setShowVide(false)} > e.preventDefault()} > )} ); }; export default Hero;