UNPKG

@gechiui/block-editor

Version:
26 lines (23 loc) 508 B
/** * GeChiUI dependencies */ import { __ } from '@gechiui/i18n'; import { ToolbarButton } from '@gechiui/components'; import { fullscreen } from '@gechiui/icons'; function BlockFullHeightAlignmentControl( { isActive, label = __( '切换全高' ), onToggle, isDisabled, } ) { return ( <ToolbarButton isActive={ isActive } icon={ fullscreen } label={ label } onClick={ () => onToggle( ! isActive ) } disabled={ isDisabled } /> ); } export default BlockFullHeightAlignmentControl;