24 lines
394 B
JavaScript
24 lines
394 B
JavaScript
}
|
|
|
|
if ( ! path ) {
|
|
return null;
|
|
}
|
|
|
|
const iconClass = [ 'dashicon', 'dashicons-' + icon, className ].filter( Boolean ).join( ' ' );
|
|
|
|
return (
|
|
<SVG
|
|
aria-hidden
|
|
role="img"
|
|
focusable="false"
|
|
className={ iconClass }
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width={ size }
|
|
height={ size }
|
|
viewBox="0 0 20 20"
|
|
>
|
|
<path d={ path } />
|
|
</SVG>
|
|
);
|
|
}
|
|
}
|