"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.FunnelLabel = void 0;
var _react = _interopRequireDefault(require("react"));
var _Text = _interopRequireDefault(require("../../Text"));
var _constants = require("../constants");
var _FunnelLabelSt = require("./FunnelLabel.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/FunnelChart/FunnelLabel/FunnelLabel.jsx",
  _this = void 0;
var FunnelLabel = exports.FunnelLabel = function FunnelLabel(_ref) {
  var value = _ref.value,
    label = _ref.label,
    displayValue = _ref.displayValue;
  var numberToPresent = displayValue ? displayValue : value;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: _FunnelLabelSt.classes.root,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react["default"].createElement(_Text["default"], {
    dataHook: _constants.dataHooks.labelText,
    size: "tiny",
    weight: "normal",
    secondary: true,
    ellipsis: true,
    tooltipProps: {
      size: 'small'
    },
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 7
    }
  }, label), /*#__PURE__*/_react["default"].createElement(_Text["default"], {
    dataHook: _constants.dataHooks.labelValue,
    size: "medium",
    weight: "bold",
    ellipsis: true,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 20,
      columnNumber: 7
    }
  }, numberToPresent));
};