'use strict';

var DateLib = require('../classes/DateLib.cjs');

/**
 * Format the weekday name to be displayed in the weekdays header.
 *
 * @defaultValue `cccccc` (e.g. "Mo" for Monday)
 * @group Formatters
 * @see https://daypicker.dev/docs/translation#custom-formatters
 */
function formatWeekdayName(weekday, options, dateLib) {
    return (dateLib ?? new DateLib.DateLib(options)).format(weekday, "cccccc");
}

exports.formatWeekdayName = formatWeekdayName;
//# sourceMappingURL=formatWeekdayName.cjs.map
