import { Action } from 'lib/types/interfaces';


export const fetchNotifications = (page?: number) => ({
	type: '@@notifications::FETCH',
	page: page
}) as Action;



export const fetchedNotifications = (data?: any) => ({
	type: '@@notifications::FETCHED',
	...data
}) as Action;



export const failedFetchNotifications = (error?: any) => ({
	type: '@@notifications::FAILED_FETCH',
	...error
}) as Action;



