woocommerce/plugins/woocommerce-admin/client/tasks/task.tsx

13 lines
286 B
TypeScript

/**
* External dependencies
*/
import { WooOnboardingTask } from '@woocommerce/onboarding';
export type TaskProps = {
query: { task: string };
};
export const Task: React.FC< TaskProps > = ( { query } ) => (
<WooOnboardingTask.Slot id={ query.task } fillProps={ { query } } />
);