UNPKG

@gechiui/block-editor

Version:
27 lines (24 loc) 621 B
import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import { __ } from '@gechiui/i18n'; import { ToolbarButton } from '@gechiui/components'; import { fullscreen } from '@gechiui/icons'; function BlockFullHeightAlignmentControl(_ref) { let { isActive, label = __('切换全高'), onToggle, isDisabled } = _ref; return createElement(ToolbarButton, { isActive: isActive, icon: fullscreen, label: label, onClick: () => onToggle(!isActive), disabled: isDisabled }); } export default BlockFullHeightAlignmentControl; //# sourceMappingURL=index.js.map