import { Box, Image, Flex, Grid, useTheme } from '@chakra-ui/react'; import React from 'react'; import { useTranslation } from 'next-i18next'; import MyTooltip from '@/components/MyTooltip'; import { feConfigs } from '@/store/static'; const Choice = () => { const theme = useTheme(); const { t } = useTranslation(); const list = [ ...(feConfigs?.show_git ? [ { icon: '/imgs/home/icon_1.svg', title: t('home.Choice Open'), desc: t('home.Choice Open Desc', { title: feConfigs?.systemTitle }), tooltip: '前往 GitHub', onClick: () => window.open('https://github.com/labring/FastGPT', '_blank') } ] : [ { icon: '/imgs/home/icon_0.svg', title: t('home.Choice Fast'), desc: t('home.Choice Fast Desc', { title: feConfigs?.systemTitle }) } ]), { icon: '/imgs/home/icon_2.svg', title: t('home.Choice QA'), desc: t('home.Choice QA Desc') }, { icon: '/imgs/home/icon_3.svg', title: t('home.Choice Visual'), desc: t('home.Choice Visual Desc') }, { icon: '/imgs/home/icon_4.svg', title: t('home.Choice Extension'), desc: t('home.Choice Extension Desc') }, { icon: '/imgs/home/icon_5.svg', title: t('home.Choice Debug'), desc: t('home.Choice Debug Desc') }, { icon: '/imgs/home/icon_6.svg', title: t('home.Choice Models'), desc: t('home.Choice Models Desc') } ]; return ( {t('home.Why FastGPT', { title: feConfigs?.systemTitle })} {list.map((item) => ( item.onClick?.()} > {''} {item.title} {item.desc} ))} ); }; export default Choice;