"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _element = require("@wordpress/element");
var _reactNative = require("react-native");
var _components = require("@wordpress/components");
var _i18n = require("@wordpress/i18n");
var _compose = require("@wordpress/compose");
var _icons = require("@wordpress/icons");
var _editor = _interopRequireDefault(require("./editor.scss"));
/**
 * External dependencies
 */

/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

function EditTitle({
  getStylesFromColorScheme,
  title
}) {
  const lockIconStyle = getStylesFromColorScheme(_editor.default.lockIcon, _editor.default.lockIconDark);
  const titleStyle = getStylesFromColorScheme(_editor.default.title, _editor.default.titleDark);
  const infoIconStyle = getStylesFromColorScheme(_editor.default.infoIcon, _editor.default.infoIconDark);
  const separatorStyle = getStylesFromColorScheme(_editor.default.separator, _editor.default.separatorDark);
  return (0, _element.createElement)(_reactNative.View, {
    style: _editor.default.titleContainer
  }, (0, _element.createElement)(_reactNative.View, {
    style: _editor.default.lockIconContainer
  }, (0, _element.createElement)(_components.Icon, {
    label: (0, _i18n.__)('Lock icon'),
    icon: _icons.lock,
    size: 16,
    style: lockIconStyle
  })), (0, _element.createElement)(_reactNative.Text, {
    numberOfLines: 1,
    style: titleStyle
  }, title), (0, _element.createElement)(_reactNative.View, {
    style: _editor.default.helpIconContainer
  }, (0, _element.createElement)(_components.Icon, {
    label: (0, _i18n.__)('Help icon'),
    icon: _icons.help,
    size: 20,
    style: infoIconStyle
  })), (0, _element.createElement)(_reactNative.View, {
    style: separatorStyle
  }));
}
var _default = (0, _compose.withPreferredColorScheme)(EditTitle);
exports.default = _default;
//# sourceMappingURL=edit-title.native.js.map