import * as React from 'react'; import { getDisplayValueByUrlType } from '~/utils/getDisplayValueByUrlType'; import { RoundedLink } from './RoundedLink'; export enum LinkType { Url = 'url', LinkedIn = 'linkedin', Twitter = 'twitter', } type SocialLinkProps = { label: string; href: string; type: LinkType; onClick?: (event: React.MouseEvent) => void; }; export const SocialLink = ({ label, href, onClick, type }: SocialLinkProps) => { const displayValue = getDisplayValueByUrlType({ type: type, href: href }) ?? label; return ; };