import { RoleType, PageType } from '@/constants/app';
import { LocationInfo } from '@/types/location';

import { CHANGE_ROLE_TYPE, CHANGE_HOME_PAGE, SET_LOCATION_INFO } from '../constants';

export const changeRoleType = (value: RoleType) => ({ type: CHANGE_ROLE_TYPE, value });

export const changeHomePage = (value: PageType) => ({ type: CHANGE_HOME_PAGE, value });

export const setLocationInfo = (value: LocationInfo) => ({ type: SET_LOCATION_INFO, value });
