import { useTranslations } from 'next-intl'; type CompanyProps = { readonly description: string; readonly href: string; readonly period: string; readonly title: string; }; export function Work() { const t = useTranslations('Work'); const companies: CompanyProps[] = [ { description: t('evolution.description'), href: 'https://evoleasing.ru/', period: t('evolution.period'), title: t('evolution.title'), }, { description: t('carcade.description'), href: 'https://carcade.com/', period: t('carcade.period'), title: t('carcade.title'), }, ]; return (

{t('experience')}

{companies.map((company) => ( ))}
); } function Company({ description, href, period, title }: CompanyProps) { return (

{title}

{period}

{description}

); }