"use client" import { IconByIconName } from "@scandic-hotels/design-system/Icons/IconByIconName" import { trackSocialMediaClick } from "@/utils/tracking" import type { IconName } from "@scandic-hotels/design-system/Icons/iconName" import type { SocialIconsProps } from "@/types/components/footer/socialIcons" import type { SocialLinkProps } from "@/types/components/footer/socialLink" function SocialIcon({ iconName }: SocialIconsProps) { const SocialIcon = ( ) return SocialIcon ? SocialIcon : {iconName} } export default function SocialLink({ link }: SocialLinkProps) { const { href, title } = link return ( trackSocialMediaClick(title)} > ) }