UNPKG

@wordpress/block-library

Version:
41 lines (35 loc) 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = StickyControl; var _element = require("@wordpress/element"); var _components = require("@wordpress/components"); var _i18n = require("@wordpress/i18n"); /** * WordPress dependencies */ const stickyOptions = [{ label: (0, _i18n.__)('Include'), value: '' }, { label: (0, _i18n.__)('Exclude'), value: 'exclude' }, { label: (0, _i18n.__)('Only'), value: 'only' }]; function StickyControl(_ref) { let { value, onChange } = _ref; return (0, _element.createElement)(_components.SelectControl, { label: (0, _i18n.__)('Sticky posts'), options: stickyOptions, value: value, onChange: onChange, help: (0, _i18n.__)('Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.') }); } //# sourceMappingURL=sticky-control.js.map