import { CheckboxControl, Flex } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { ShipmentItem } from 'types'; interface StaticHeaderProps { hasVariations: boolean; selectAll?: ( isChecked: boolean ) => void; selections?: ShipmentItem[]; selectablesCount?: number; hasMultipleShipments?: boolean; selectable?: boolean; } export const StaticHeader = ( { hasVariations, selectAll, selections = [], selectablesCount = 0, hasMultipleShipments = false, selectable = true, }: StaticHeaderProps ) => ( { selectable && selectAll && ( 0 && selections.length < selectablesCount } style={ { visibility: ! hasMultipleShipments ? 'visible' : 'hidden', } } // Opting into the new styles for margin bottom __nextHasNoMarginBottom={ true } /> ) }
{ __( 'Product', 'woocommerce-shipping' ) }
{ __( 'Qty', 'woocommerce-shipping' ) }
{ hasVariations && (
{ __( 'Variation', 'woocommerce-shipping' ) }
) }
{ __( 'Weight', 'woocommerce-shipping' ) }
{ __( 'Price', 'woocommerce-shipping' ) }
);