export type AlertStatus = '未处理' | '处理中' | '已关闭'
export type AlertAction = 'process' | 'close'

export const transitionAlertStatus = (status: AlertStatus, action: AlertAction): AlertStatus => {
  if (status === '已关闭') return status
  if (action === 'close') return '已关闭'
  if (status === '未处理') return '处理中'
  return status
}
