/* eslint-disable no-console */
/**
* External dependencies
*/
import { Slot, Fill } from '@wordpress/components';
import {
createOrderedChildren,
sortFillsByOrder,
} from '@woocommerce/components';
export const WC_TASKLIST_EXPERIMENTAL_PROGRESS_TITLE_SLOT_NAME =
'woocommerce_tasklist_experimental_progress_title_item';
export const WooTaskListProgressTitleItem: React.FC< {
children?: React.ReactNode;
order?: number;
} > & {
Slot: React.FC< Slot.Props >;
} = ( { children, order = 1 } ) => {
return (
{ ( fillProps: Fill.Props ) => {
return createOrderedChildren( children, order, fillProps );
} }
);
};
WooTaskListProgressTitleItem.Slot = ( { fillProps } ) => {
return (
{ sortFillsByOrder }
);
};