import {
  Dayjs
} from 'dayjs';

import {
  IDemoCalendarEvent
} from '../types';

export default function getEventList(day: Dayjs, nowDay: Dayjs): IDemoCalendarEvent[] {
  const dateNum = day.date();
  
  if (nowDay.month() !== day.month()) {
    return [];
  }
  
  switch (dateNum) {
    case 1:
      return [{
        type: 'primary',
        content: 'Event 1'
      }, {
        type: 'normal',
        content: 'Event 2'
      }];
    case 10:
      return [{
        type: 'normal',
        content: 'Event 3'
      }, {
        type: 'normal',
        content: 'Event 4'
      }];
    case 11:
      return [{
        type: 'primary',
        content: 'Event 5'
      }, {
        type: 'primary',
        content: 'Event 6'
      }];
    default:
      return [];
  }
}
