import { FoldableCard, Spinner } from '@automattic/components'; import { Icon } from '@wordpress/components'; import { check, closeSmall } from '@wordpress/icons'; import clsx from 'clsx'; import { ReactNode } from 'react'; import { WorkFlowStates } from './use-check-workflow-query'; export const WorkflowValidation = ( { status, label, children, }: { status: WorkFlowStates; label: string; children: ReactNode; } ) => { const getValidationIcon = () => { if ( status === 'loading' ) { return ; } return ( ); }; return (
{ getValidationIcon() } { label } } > { children }
); };