

type DataAction =
    | { type: 'addAnniversary', payload: DataEmployee[] }


export const dataReducer = (state: Employees, action: DataAction): Employees => {
    

    switch (action.type) {
        case 'addAnniversary':
            return {
                dataEmployee: action.payload
            }
        default:
            return state;
    }

}