enum IconSet { Menu, Twitter, GitHub, YouTube, MessageSquare, } 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: return ( ); case IconSet.GitHub: return ( ); case IconSet.YouTube: return ( ); case IconSet.MessageSquare: return ( ); } }; export { Icon, IconSet };