import React from 'react'; import { __experimentalText as Text, Button } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; interface SelectionHeaderProps { selectionsCount: number; selectablesCount: number; selectAll: ( isSelected: boolean ) => void; isDisabled: boolean; } export const SelectionHeader = ( { selectionsCount, selectablesCount, selectAll, isDisabled, }: SelectionHeaderProps ) => (
{ selectionsCount > 0 && ( { selectionsCount } { __( 'selected', 'woocommerce-shipping' ) } ) } { selectionsCount < selectablesCount && ( ) } { selectionsCount > 0 && ( ) }
);