import 'package:aman_kassa_flutter/redux/actions/setting_actions.dart';
import 'package:aman_kassa_flutter/redux/state/setting_state.dart';

settingReducer(SettingState prevState, SetSettingStateAction action) {
  final payload = action.settingState;
  return prevState.copyWith(
    mode: payload.mode,
    tradeType: payload.tradeType,
    pinCode: payload.pinCode,
    pinLocked: payload.pinLocked,
    pinSkip: payload.pinSkip,
    printerBT: payload.printerBT,
    printerEncoding: payload.printerEncoding,
    printerPaperSize: payload.printerPaperSize,
  );
}
