File size: 356 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import type { SessionInState } from '../reducers/sessionReducer.js'

export const SESSION_INITIALIZE = 'SESSION_INITIALIZE'

export type SetCurrentAdminResponse = {
  type: typeof SESSION_INITIALIZE
  data: SessionInState
}

export const setCurrentAdmin = (data: SessionInState = null): SetCurrentAdminResponse => ({
  type: SESSION_INITIALIZE,
  data,
})