import { Action } from 'redux'; import { CreateJobInfo } from '@/types/job'; import { CREATE_JOB } from '../constants'; const INIT_STATE: Partial = {}; const userInfo = (state: Partial = INIT_STATE, action: Action): Partial => { const { type, value } = action as BL.Anything; switch (type) { case CREATE_JOB: return value; default: return state; } }; export default userInfo;