import { forwardRef } from '@wordpress/element'; import { SVG } from '@wordpress/primitives'; import type { IconProps } from './types'; /** * Renders an SVG icon with a 24px default size. * * ```jsx * import { wordpress } from '@wordpress/icons'; * * * ``` */ export const Icon = forwardRef< SVGSVGElement, IconProps >( function UnforwardedIcon( { icon, size = 24, style, ...restProps }, ref ) { const mergedStyle = icon.props.style || style ? { ...icon.props.style, ...style } : undefined; return ( ); } );