import { Action } from 'lib/types/interfaces';



export const fetchCovidStats = (country?): Action => ({
	type: 'external_api::FETCH_COVID_STATS',
	country
});


export const fetchedCovidStats = (data?): Action => ({
	type: 'external_api::FETCHED_COVID_STATS',
	...data
});


export const failedFetchCovidStats = (error?): Action => ({
	type: 'external_api::FAILED_FETCH_COVID_STATS',
	...error
});



