import {ActionType} from 'constants';

export const signIn = data => ({
  type: ActionType.SIGN_IN,
  payload: {
    token: data.token,
    user: data.user,
  },
});

export const signOut = () => ({
  type: ActionType.SIGN_OUT,
});
