import { UserInfo } from '@/types/user';

import { SET_USER_INFO, SET_BIND_PHONE } from '../constants';

export const setUserInfo = (value: Partial<UserInfo>) => ({ type: SET_USER_INFO, value });

export const setBindPhone = (value: UserInfo['isBindPhone']) => ({ type: SET_BIND_PHONE, value });
