import { MoreEllipsis316BoldSecondaryIcon } from '@cloudtower/icons-react';
import Button from '../Button/index.js';
import React__default from 'react';
import Icon from '../Icon/index.js';
import { Antd5Dropdown } from '../Antd5Dropdown/Antd5Dropdown.js';

var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
  enumerable: true,
  configurable: true,
  writable: true,
  value
}) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
    if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  }
  return a;
};
const actionStyle = "E_4100_0_7_a9y3flr";
const actionStyleLabel = "E_4100_0_7_a1njc627";
const LineChartActions = props => {
  const {
    label,
    dropdownProps
  } = props;
  return /* @__PURE__ */React__default.createElement("div", {
    className: "metric-extra"
  }, /* @__PURE__ */React__default.createElement("div", {
    className: actionStyleLabel
  }, label), dropdownProps && /* @__PURE__ */React__default.createElement(Antd5Dropdown, __spreadValues({}, dropdownProps), /* @__PURE__ */React__default.createElement(Button, {
    size: "small",
    type: "tertiary",
    className: actionStyle,
    prefixIcon: /* @__PURE__ */React__default.createElement(Icon, {
      src: MoreEllipsis316BoldSecondaryIcon
    })
  })));
};
var LineChartActions$1 = LineChartActions;

export { LineChartActions$1 as default };
