import React from 'react' import styles from './IconLinks.module.scss' import { ReactComponent as Twitter } from '../../images/twitter.svg' import { ReactComponent as Github } from '../../images/github.svg' import { ReactComponent as Facebook } from '../../images/facebook.svg' import { ReactComponent as Rss } from '../../images/rss.svg' import { ReactComponent as Jsonfeed } from '../../images/jsonfeed.svg' function NetworkIcon({ link }: { link: string }) { let Icon if (link.includes('twitter')) { Icon = } else if (link.includes('github')) { Icon = } else if (link.includes('facebook')) { Icon = } else if (link.includes('feed.xml')) { Icon = } else if (link.includes('feed.json')) { Icon = } return Icon } export default function IconLinks({ links }: { links: string[] }) { return (

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

) }