const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_formatWeekday = require("../../pisellDateTimeDisplay/utils/formatWeekday.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/pisellTimeRangeDisplay/components/WeekdayBlock.tsx
/**
* 星期展示块（复用 PisellDateTimeDisplay 的 formatWeekday）
*/
const WeekdayBlock = ({ weekday, format, style, className }) => {
	const formattedWeekday = require_formatWeekday.formatWeekday(weekday, format);
	const 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.default.createElement("span", {
		className: `pisell-time-range-display-weekday ${className || ""}`.trim(),
		style: inlineStyle
	}, formattedWeekday);
};
//#endregion
exports.default = WeekdayBlock;
