import { Action } from 'lib/types/interfaces';

export const fetchSearchSuggestions = (searchKey?: string) => ({
	type: '@@search::FETCH_SEARCH_SUGGESTIONS',
	searchKey: searchKey
}) as Action;

export const fetchedSearchSuggestions = (data?) => ({
	type: '@@search::FETCHED_SEARCH_SUGGESTIONS',
	...data
}) as Action;

export const failedFetchSearchSuggestions = (error?) => ({
	type: '@@search::FAILED_FETCH_SEARCH_SUGGESTIONS',
	...error
}) as Action;
