import React from "react"; import { SvgProps } from "../../../components/Svg"; import Flex from "../../../components/Box/Flex"; import Dropdown from "../../../components/Dropdown/Dropdown"; import Link from "../../../components/Link/Link"; import * as IconModule from "../icons"; import { socials } from "../config"; const Icons = IconModule as unknown as { [key: string]: React.FC }; const SocialLinks: React.FC = () => ( {socials.map((social, index) => { const Icon = Icons[social.icon]; const iconProps = { width: "28px", color: "textSubtle", style: { cursor: "pointer" } }; const mr = index < socials.length - 1 ? "24px" : 0; // if (social.items) { // return ( // }> // {social.items.map((item) => ( // // {item.label} // // ))} // // ); // } return ( ); })} ); export default React.memo(SocialLinks, () => true);