"use strict";

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

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

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

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

var _Box = require("../Box");

var _styles = _interopRequireDefault(require("./styles"));

var __jsx = _react["default"].createElement;

var Text = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
  var _props$kind = props.kind,
      kind = _props$kind === void 0 ? 'body' : _props$kind,
      _props$state = props.state,
      state = _props$state === void 0 ? 'normal' : _props$state;
  var textStyleProps = (0, _styles["default"])({
    kind: kind,
    state: state
  });
  return __jsx(_Box.Box, (0, _extends2["default"])({
    ref: ref,
    as: "p"
  }, textStyleProps, props));
});

exports.Text = Text;
//# sourceMappingURL=Text.js.map