"use client"; import type { ReactNode } from "react"; import CallbackForm from "@/components/CallbackForm"; import { site, socials } from "@/data/site"; import { useMessages } from "@/i18n/locale-context"; function InstagramIcon() { return ( ); } function TelegramIcon() { return ( ); } function LinkedinIcon() { return ( ); } function EmailIcon() { return ( ); } function PhoneIcon() { return ( ); } const icons: Record ReactNode> = { instagram: InstagramIcon, telegram: TelegramIcon, linkedin: LinkedinIcon, email: EmailIcon, }; export default function ContactBar() { const t = useMessages(); const socialLabels: Record = { instagram: t.social.instagram, telegram: t.social.telegram, linkedin: t.social.linkedin, email: t.social.email, }; return (
{t.contactBar.label} {site.phone}
{socials.map((item) => { const Icon = icons[item.id]; return ( {Icon ? : item.labelEn} ); })}

{t.contactBar.subscribe}

); }