import { Action } from 'lib/types/interfaces';



export const fetchCMS = (endpoint?, options?): Action => ({
	type: 'cms::FETCH',
	endpoint,
	options
});


export const fetchedCMS = (data?): Action => ({
	type: 'cms::FETCHED',
	...data
});

export const failedFetchCMS = (error?): Action => ({
	type: 'cms::FAILED_FETCH',
	...error
});