/* priority-icon.tsx generated by @compiled/babel-plugin v0.40.0 */
import _extends from "@babel/runtime/helpers/extends";
import "./priority-icon.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
const style = {
  span: "_1e0c1o8l",
  svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
};
export const createPriorityIcon = (displayName, paths) => {
  const Icon = ({
    label,
    testId,
    ...props
  }) => /*#__PURE__*/React.createElement("span", _extends({
    role: label ? 'img' : undefined,
    "aria-label": label,
    "aria-hidden": label ? undefined : true,
    "data-testid": testId
  }, props, {
    className: ax([style.span])
  }), /*#__PURE__*/React.createElement("svg", {
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    role: "presentation",
    className: ax([style.svg])
  }, paths.map((p, i) => /*#__PURE__*/React.createElement("path", {
    key: i,
    d: p.d,
    fill: p.fill
  }))));
  Icon.displayName = displayName;
  return Icon;
};