import Image from 'next/image'; import { FC } from 'react'; import { ErrorBoundary } from 'react-error-boundary'; import { SocialLink } from '../../../interfaces/social-link.model'; import { ComponentError } from '../ComponentError/ComponentError'; import styles from './SocialLinks.module.scss'; export type SocialLinksProps = { links: SocialLink[]; }; export const SocialLinks: FC = ({ links }) => { if (!links?.length) { return null; } return ( ( )} > ); };