import React from "react"; import { darkColors } from "../../../theme"; import { FlexProps } from "../../Box"; import Flex from "../../Box/Flex"; import Link from "../../Link/Link"; import { socials } from "../config"; const SocialLinks: React.FC> = ({ ...props }) => ( {socials.map((social, index) => { const iconProps = { width: "20px", color: darkColors.contrast, style: { cursor: "pointer" }, }; const Icon = social.icon; const mr = index < socials.length - 1 ? "24px" : 0; return ( ); })} ); export default React.memo(SocialLinks, () => true);