export default {
	setCategory( category ) {
		return {
			type: 'SET_CATEGORY',
			payload: { category },
		};
	},
	setOnboardingStep( step ) {
		return {
			type: 'SET_ONBOARDING_STEP',
			payload: { step },
		};
	},
	setSearchQuery( query ) {
		return {
			type: 'SET_SEARCH_QUERY',
			payload: { query },
		};
	},
	setFetching( fetching ) {
		return {
			type: 'SET_FETCHING',
			payload: { fetching },
		};
	},
	setCurrentSite( siteData ) {
		return {
			type: 'SET_FOCUSED_SITE',
			payload: { siteData },
		};
	},
	setImportData( importData ) {
		return {
			type: 'SET_IMPORT_DATA',
			payload: { importData },
		};
	},
	setPluginOptions( pluginOptions ) {
		return {
			type: 'SET_PLUGIN_OPTIONS',
			payload: { pluginOptions },
		};
	},
	setError( error ) {
		return {
			type: 'SET_ERROR',
			payload: { error },
		};
	},
	setUserCustomSettings( userCustomSettings ) {
		return {
			type: 'SET_USER_CUSTOM_SETTINGS',
			payload: { userCustomSettings },
		};
	},
	setCurrentEditor( editor ) {
		return {
			type: 'SET_CURRENT_EDITOR',
			payload: { editor },
		};
	},
	setTrackingId( trackingId ) {
		return {
			type: 'SET_TRACKING_ID',
			payload: { trackingId },
		};
	},
	setRefresh( refresh ) {
		return {
			type: 'SET_REFRESH',
			payload: { refresh },
		};
	},
	setSortBy( sortBy ) {
		return {
			type: 'SET_SORT_BY',
			payload: { sortBy },
		};
	},
	setRankedOrder( editor, order ) {
		return {
			type: 'SET_RANKED_ORDER',
			payload: { editor, order },
		};
	},
	setSearchOrder( order ) {
		return {
			type: 'SET_SEARCH_ORDER',
			payload: { order },
		};
	},
	setSearchFailed( failed ) {
		return {
			type: 'SET_SEARCH_FAILED',
			payload: { failed },
		};
	},
	setSelectedColors( colors ) {
		return {
			type: 'SET_SELECTED_COLORS',
			payload: { colors },
		};
	},
};
