2021-12-21 12:51:04 +00:00
|
|
|
import { Action } from 'redux';
|
|
|
|
|
2021-12-21 15:03:59 +00:00
|
|
|
import { IActiveUsers } from '../reducers/activeUsers';
|
2021-12-21 12:51:04 +00:00
|
|
|
import { SET_ACTIVE_USERS } from './actionsTypes';
|
|
|
|
|
|
|
|
export interface SetActiveUsers extends Action {
|
2021-12-21 15:03:59 +00:00
|
|
|
activeUsers: IActiveUsers;
|
2021-12-21 12:51:04 +00:00
|
|
|
}
|
|
|
|
|
2021-12-21 15:03:59 +00:00
|
|
|
export type IActionActiveUsers = SetActiveUsers;
|
|
|
|
|
|
|
|
export const setActiveUsers = (activeUsers: IActiveUsers): SetActiveUsers => ({
|
2021-12-21 12:51:04 +00:00
|
|
|
type: SET_ACTIVE_USERS,
|
|
|
|
activeUsers
|
|
|
|
});
|