"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.titleField = exports.orderField = void 0;
var _i18n = require("@wordpress/i18n");
var _utils = require("../actions/utils");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

const titleField = exports.titleField = {
  type: 'text',
  id: 'title',
  label: (0, _i18n.__)('Title'),
  placeholder: (0, _i18n.__)('No title'),
  getValue: ({
    item
  }) => (0, _utils.getItemTitle)(item)
};
const orderField = exports.orderField = {
  type: 'integer',
  id: 'menu_order',
  label: (0, _i18n.__)('Order'),
  description: (0, _i18n.__)('Determines the order of pages.')
};
//# sourceMappingURL=index.js.map