export const USERS_REQUEST = 'USERS_REQUEST';
export const USERS_SUCCESS = 'USERS_SUCCESS';
export const USERS_FAILURE = 'USERS_FAILURE';
export const SEARCH_USER_REQUEST = 'SEARCH_USER_REQUEST';
export const SEARCH_USER_SUCCESS = 'SEARCH_USER_SUCCESS';
export const SEARCH_USER_FAILURE = 'SEARCH_USER_FAILURE';
export const usersRequest = () => ({type: USERS_REQUEST})
export const usersSuccess = (data) => ({type: USERS_SUCCESS, data})
export const usersFailure = (error) => ({type: USERS_FAILURE, error})
export const searchUserRequest = () => ({type: SEARCH_USER_REQUEST})
export const searchUserSuccess = (data) => ({type: SEARCH_USER_SUCCESS, data})
export const searchUserFailure = (error) => ({type: SEARCH_USER_FAILURE, error})
?
Опционально без констант.