import React from 'react';
import { formatWeekday } from "../utils";
/**
 * 星期展示块（复用 PisellDateTimeDisplay 的 formatWeekday）
 */
export var WeekdayBlock = function WeekdayBlock(_ref) {
  var weekday = _ref.weekday,
    format = _ref.format,
    style = _ref.style,
    className = _ref.className;
  var formattedWeekday = formatWeekday(weekday, format);
  var inlineStyle = {
    fontSize: style === null || style === void 0 ? void 0 : style.fontSize,
    fontWeight: style === null || style === void 0 ? void 0 : style.fontWeight,
    color: style === null || style === void 0 ? void 0 : style.color,
    lineHeight: style === null || style === void 0 ? void 0 : style.lineHeight
  };
  return /*#__PURE__*/React.createElement("span", {
    className: "pisell-time-range-display-weekday ".concat(className || '').trim(),
    style: inlineStyle
  }, formattedWeekday);
};
export default WeekdayBlock;