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