"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _typography = require("../typography");

var _excluded = ["children", "inverse"];

var HelpText = function HelpText(_ref) {
  var _ref$children = _ref.children,
      children = _ref$children === void 0 ? 'This is the help text' : _ref$children,
      _ref$inverse = _ref.inverse,
      inverse = _ref$inverse === void 0 ? false : _ref$inverse,
      others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement(_typography.TextSmall, (0, _extends2.default)({}, others, {
    color: inverse ? 'teal' : 'neutral',
    "data-teamleader-ui": "help-text",
    marginTop: 1,
    tint: inverse ? 'light' : 'darkest'
  }), children);
};

var _default = HelpText;
exports.default = _default;