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';
|
|
|
|
|
2022-01-07 18:12:59 +00:00
|
|
|
interface ISetActiveUsers extends Action {
|
2021-12-21 15:03:59 +00:00
|
|
|
activeUsers: IActiveUsers;
|
2021-12-21 12:51:04 +00:00
|
|
|
}
|
|
|
|
|
2021-12-29 13:33:41 +00:00
|
|
|
export type TActionActiveUsers = ISetActiveUsers;
|
2021-12-21 15:03:59 +00:00
|
|
|
|
2021-12-29 13:33:41 +00:00
|
|
|
export const setActiveUsers = (activeUsers: IActiveUsers): ISetActiveUsers => ({
|
2021-12-21 12:51:04 +00:00
|
|
|
type: SET_ACTIVE_USERS,
|
|
|
|
activeUsers
|
|
|
|
});
|