import { Action } from 'lib/types/interfaces';

export const doFollow = (payload?) => ({
	type: '@@follows::CREATE',
	payload: payload
}) as Action;

export const didFollow = (data?) => ({
	type: '@@follows::CREATED',
	...data
}) as Action;

export const failedDoFollow = (error?) => ({
	type: '@@follows::FAILED_CREATE',
	...error
}) as Action;

export const undoFollow = (payload?) => ({
	type: '@@follows::DELETE',
	payload: payload
}) as Action;

export const undidFollow = (data?) => ({
	type: '@@follows::DELETED',
	...data
}) as Action;

export const failedUndoFollow = (error?) => ({
	type: '@@follows::FAILED_DELETE',
	...error
}) as Action;

