11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
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);
|
|
};
|