Blame view

天文台pc/tianwentai-ui/node_modules/react-day-picker/src/contexts/DayPicker/labels/labelWeekday.ts 253 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
  import { format } from 'date-fns';
  
  import { WeekdayLabel } from 'types/Labels';
  
  /**
   * The default ARIA label for the Weekday element.
   */
  export const labelWeekday: WeekdayLabel = (day, options): string => {
    return format(day, 'cccc', options);
  };