import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children", "inverse"];
import React from 'react';
import { TextSmall } from '../typography';

var WarningText = function WarningText(_ref) {
  var _ref$children = _ref.children,
      children = _ref$children === void 0 ? 'This is the warning text' : _ref$children,
      _ref$inverse = _ref.inverse,
      inverse = _ref$inverse === void 0 ? false : _ref$inverse,
      others = _objectWithoutProperties(_ref, _excluded);

  return /*#__PURE__*/React.createElement(TextSmall, _extends({}, others, {
    color: "gold",
    "data-teamleader-ui": "warning-text",
    marginTop: 1,
    tint: inverse ? 'light' : 'dark'
  }), children);
};

export default WarningText;