import cx from "classnames"; import React from "react"; export interface MegaMenuIconProps extends React.SVGAttributes { /** Accessible label for the icon. */ alt?: string; /** Icon name (required). */ name: string; /** Path to the SVG sprite. */ spritePath?: string; /** Additional CSS classes */ className?: string; } const CLASS_ROOT = "megamenu-icon"; const MegamenuIcon: React.FC = ({ className, alt, name, spritePath = "/sprite.svg", ...other }) => { const classes = cx(CLASS_ROOT, className); return ( {alt !== undefined && alt.length > 0 && {alt}} {/* Light theme version (default) */} {/* Dark theme version */} ); }; export { MegamenuIcon };