packages/material-ui-lab/src/internal/pickers/date-utils.ts/isYearAndMonthViews
export const isYearAndMonthViews = (views: readonly DatePickerView[]) =>
  views.length === 2 && arrayIncludes(views, 'month') && arrayIncludes(views, 'year');