import React from 'react';

var WeekDay = function WeekDay(_ref) {
  var weekday = _ref.weekday,
      className = _ref.className,
      localeUtils = _ref.localeUtils,
      locale = _ref.locale,
      size = _ref.size;
  var weekdayName = localeUtils === null || localeUtils === void 0 ? void 0 : localeUtils.formatWeekdayLong(weekday, locale);
  return /*#__PURE__*/React.createElement("div", {
    className: className,
    title: weekdayName
  }, weekdayName === null || weekdayName === void 0 ? void 0 : weekdayName.slice(0, size === 'large' ? 2 : 1));
};

export default WeekDay;