import { icons } from './icons'; import { useTranslations } from 'next-intl'; import Image, { type StaticImageData } from 'next/image'; type ContactType = { readonly href: string; readonly image: { className?: string; src: StaticImageData; }; readonly title: string; }; const contacts: ContactType[] = [ { href: 'https://t.me/vchikalkin', image: { src: icons.Telegram, }, title: 'Telegram', }, { href: 'https://github.com/vchikalkin', image: { className: 'dark:invert', src: icons.Github, }, title: 'GitHub', }, { href: 'mailto:i@vchikalkin.ru', image: { className: 'dark:invert', src: icons.Email, }, title: 'Email', }, { href: 'https://www.instagram.com/v.chikalkin/', image: { src: icons.Instagram, }, title: 'Instagram', }, { href: 'https://soundcloud.com/vchika', image: { src: icons.Soundcloud, }, title: 'SoundCloud', }, ]; export function Contacts() { const t = useTranslations('Contact'); return (

{t('title')}

{contacts.map((contact) => ( ))}
); } function Contact({ href, image, title }: ContactType) { return (
{title}

{title}

); }