"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(require("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.default.createElement("div", {
    className: className,
    title: weekdayName
  }, weekdayName === null || weekdayName === void 0 ? void 0 : weekdayName.slice(0, size === 'large' ? 2 : 1));
};

var _default = WeekDay;
exports.default = _default;