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