    return 'week';
  }
  return next;
};

export const PickerModeMap: Record<
  PickerMode,
  ((next: PanelMode) => PanelMode) | null
> = {
  year: getYearNextMode,
  month: getMonthNextMode,
  week: getWeekNextMode,