/** * A wrapper for custom SVG icon. * When the user uses a custom SVG, the imported icon can be a string or a React component. */ export function SvgWrapper({ icon: Icon, ...rest }: { icon: string | React.FC>; } & React.SVGAttributes) { if (!Icon) { return null; } if (typeof Icon === 'string') { return ; } return ; }