import _extends from "@babel/runtime/helpers/esm/extends";
import React from "react";
import { GradientDefs } from "../../GradientDefs";

/**
 * @component SparkIcon
 * @description
 *
 * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
 * The Icon component is
 * customizable, allowing for variations in size, color, and style to fit the needs of the application.
 *
 * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
 * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
 *
 * @example
 * return (
 * <SparkIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
 * )
 *
 * @example
 * return (
 *   <SparkIcon className="mr-2" />
 * )
 *
 * @see
 * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
 * @see
 * https://design.activecollab.com/docs/foundations/icons
 */
const SparkIcon = /*#__PURE__*/React.forwardRef((_ref, svgRef) => {
  let {
    gradient,
    ...props
  } = _ref;
  return /*#__PURE__*/React.createElement("svg", _extends({
    xmlns: "http://www.w3.org/2000/svg",
    width: 24,
    height: 24,
    "data-testid": "SparkIcon",
    fill: gradient ? "url(#icon-gradient)" : props != null && props.fill ? props.fill : "var(--color-theme-600)",
    focusable: false,
    ref: svgRef
  }, props), /*#__PURE__*/React.createElement(GradientDefs, {
    gradient: gradient
  }), /*#__PURE__*/React.createElement("path", {
    d: "M11 4.515c.49 1.756 1.525 3.695 3.158 5.328 1.632 1.632 3.57 2.668 5.325 3.159-1.755.491-3.693 1.526-5.325 3.158-1.631 1.632-2.665 3.568-3.156 5.323-.492-1.755-1.529-3.691-3.16-5.323C6.209 14.527 4.27 13.491 2.515 13c1.756-.491 3.694-1.524 5.327-3.157S10.509 6.27 11 4.515zm7.902-2.041a4.14 4.14 0 001.054 1.776 4.13 4.13 0 001.774 1.053 4.131 4.131 0 00-1.774 1.052 4.134 4.134 0 00-1.053 1.776 4.135 4.135 0 00-1.053-1.776 4.13 4.13 0 00-1.776-1.052A4.13 4.13 0 0017.85 4.25a4.13 4.13 0 001.052-1.776z"
  }));
});
SparkIcon.displayName = "SparkIcon";
export default SparkIcon;
//# sourceMappingURL=Spark.js.map