import React, { ReactElement } from 'react' import Icon from '../atoms/Icon' import * as styles from './Networks.module.css' function NetworkIcon({ link }: { link: string }) { let IconComp if (link.includes('twitter')) { IconComp = } else if (link.includes('github')) { IconComp = } else if (link.includes('feed.xml')) { IconComp = } else if (link.includes('feed.json')) { IconComp = } else { return null } return IconComp } export default function IconLinks({ links }: { links: string[] }): ReactElement { return (

{links.map((link: string) => ( ))}

) }