"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _element = require("@wordpress/element");
/**
 * WordPress dependencies
 */
/**
 * External dependencies
 */
/**
 * Return an SVG icon.
 *
 * @param props The component props.
 *
 * @return Icon component
 */
var _default = exports.default = (0, _element.forwardRef)(({
  icon,
  size = 24,
  ...props
}, ref) => {
  return (0, _element.cloneElement)(icon, {
    width: size,
    height: size,
    ...props,
    ref
  });
});
//# sourceMappingURL=index.js.map