import { Box, Flex, Button, Image } from '@chakra-ui/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { feConfigs } from '@/store/static'; import { useGlobalStore } from '@/store/global'; import MyIcon from '@/components/Icon'; import { useRouter } from 'next/router'; import { useToast } from '@/hooks/useToast'; const Hero = () => { const router = useRouter(); const { toast } = useToast(); const { t } = useTranslation(); const { isPc, gitStar } = useGlobalStore(); return ( {t('home.slogan')} {t('home.desc')} {feConfigs?.show_git && ( )} { toast({ title: '录制中~' }); }} /> ); }; export default Hero;