/** @format */
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Button } from '@wordpress/components';
import { Fragment } from '@wordpress/element';
function HistoricalDataActions( {
importDate,
onDeletePreviousData,
onReimportData,
onStartImport,
onStopImport,
status,
} ) {
const getActions = () => {
const importDisabled = status !== 'ready';
// An import is currently in progress
if ( [ 'initializing', 'customers', 'orders', 'finalizing' ].includes( status ) ) {
return (
{ __(
'Navigating away from this page will not affect the import.',
'woocommerce-admin'
) }