import React from 'react'; import { Link } from 'react-router-dom'; import { useTranslation } from '../js/i18n'; import SEO from '../components/SEO'; const tools = [ { id: 'text2image', icon: 'fa-image', path: '/text2image' }, { id: 'jsonFormatter', icon: 'fa-code', path: '/json-formatter' }, { id: 'urlDecode', icon: 'fa-decode', path: '/url-decode' }, { id: 'openAITimeline', icon: 'fa-decode', path: '/openai-timeline' }, { id: 'modelPrice', icon: 'fa-decode', path: '/llm-model-price' }, ]; const Home = () => { const { t } = useTranslation(); return ( <>

{t('title')}

{t('slogan')}

{tools.map(tool => (

{t(`tools.${tool.id}.title`)}

{t(`tools.${tool.id}.description`)}

))}
); }; export default Home;