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

var Label = function Label(_ref) {
  var children = _ref.children,
      inline = _ref.inline,
      others = _objectWithoutProperties(_ref, _excluded);

  return /*#__PURE__*/React.createElement(Heading5, _extends({
    color: "teal",
    flex: inline ? '0 0 40%' : 1,
    marginBottom: inline ? 0 : 1,
    marginRight: inline ? 2 : 0,
    maxLines: 2,
    paddingVertical: inline ? 1 : 0
  }, others), children);
};

export default Label;