@wordpress/block-library
Version:
Block library for the WordPress editor.
31 lines (30 loc) • 787 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { SelectControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
const stickyOptions = [{
label: __('Include'),
value: ''
}, {
label: __('Exclude'),
value: 'exclude'
}, {
label: __('Only'),
value: 'only'
}];
export default function StickyControl(_ref) {
let {
value,
onChange
} = _ref;
return createElement(SelectControl, {
label: __('Sticky posts'),
options: stickyOptions,
value: value,
onChange: onChange,
help: __('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