"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
var _theme = require("../../contexts/theme");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const Title = _ref => {
  let {
    children,
    style
  } = _ref;
  const {
    TextTheme
  } = (0, _theme.useTheme)();
  const styles = _reactNative.StyleSheet.create({
    title: {
      ...TextTheme.title
    }
  });
  return /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
    adjustsFontSizeToFit: true,
    style: [styles.title, style]
  }, children);
};
var _default = Title;
exports.default = _default;
//# sourceMappingURL=Title.js.map