const GRAB_CONFIRM_KEY = 'order-site-worker-grab-confirm'

/** 抢单二次确认开关，默认关闭，由打手自行开启。 */
export function isGrabConfirmEnabled() {
  return window.localStorage.getItem(GRAB_CONFIRM_KEY) === '1'
}

export function setGrabConfirmEnabled(enabled: boolean) {
  window.localStorage.setItem(GRAB_CONFIRM_KEY, enabled ? '1' : '0')
}
