/**
* External dependencies
*/
import React from 'react';
import { WooOnboardingTaskListItem } from '@woocommerce/onboarding';
import { registerPlugin } from '@wordpress/plugins';
import { getAdminLink } from '@woocommerce/settings';
const useAppearanceClick = () => {
const onClick = () => {
window.location = getAdminLink(
'theme-install.php?browse=block-themes'
);
};
return { onClick };
};
const AppearanceFill = () => {
const { onClick } = useAppearanceClick();
return (
{ ( { defaultTaskItem: DefaultTaskItem } ) => (
) }
);
};
registerPlugin( 'wc-admin-onboarding-task-appearance', {
scope: 'woocommerce-tasks',
render: () => ,
} );