enum IconSet { Menu, Twitter, GitHub, YouTube, Discord, } type iconprops = { icon: IconSet; width?: number; height?: number; } & React.SVGProps; const Icon = ({ icon, width, height, ...props }: iconprops) => { switch (icon) { // guide for adding these: // - add {width || ogWidth} // - add {height || ogHeight} // - add {...props} case IconSet.Menu: return ( ); case IconSet.Twitter: // twitter icon courtesy of simpleicons.org return ( Twitter ); case IconSet.GitHub: // github icon courtesy of simpleicons.org return ( GitHub ); case IconSet.YouTube: // youtube icon courtesy of simpleicons.org return ( YouTube ); case IconSet.Discord: // discord icon courtesy of simpleicons.org return ( Discord ); } }; export { Icon, IconSet };