"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", "inline"];

var Label = function Label(_ref) {
  var children = _ref.children,
      inline = _ref.inline,
      others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement(_typography.Heading5, (0, _extends2.default)({
    color: "teal",
    flex: inline ? '0 0 40%' : 1,
    marginBottom: inline ? 0 : 1,
    marginRight: inline ? 2 : 0,
    maxLines: 2,
    paddingVertical: inline ? 1 : 0
  }, others), children);
};

var _default = Label;
exports.default = _default;