type iconselection = | "Menu" | "Users" | "Link2" | "ExternalLink" | "Code" | "Info" | "Twitter" | "GitHub" | "YouTube" | "Discord"; type iconprops = { icon: iconselection; 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 "Menu": return ( ); case "Users": return ( ); case "Link2": return ( ); case "ExternalLink": return ( ); case "Code": return ( ); case "Info": return ( ); case "Twitter": // twitter icon courtesy of simpleicons.org return ( Twitter ); case "GitHub": // github icon courtesy of simpleicons.org return ( GitHub ); case "YouTube": // youtube icon courtesy of simpleicons.org return ( YouTube ); case "Discord": // discord icon courtesy of simpleicons.org return ( Discord ); default: return <>; } }; export { Icon }; export type { iconselection };