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

8 lines
154 B
TypeScript

export type TaskProps = {
query: { task: string };
};
export const Task: React.FC< TaskProps > = ( { query } ) => (
<div>Task: { query.task }</div>
);