const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_formatWeekday = require("../utils/formatWeekday.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/pisellDateTimeDisplay/components/WeekdayDisplay.tsx
/**
* 星期展示组件
*
* @description
* - 格式化并展示星期
* - 支持完整/缩写/单字母模式
* - 自动支持中英文
*
* @example
* // 默认（缩写）
* <WeekdayDisplay
*   weekday={dayjs()}
*   format={{ full: false, singleLetter: false }}
*   style={{ fontSize: 18, fontWeight: 400, color: '#666' }}
* />
* // => "Sat" / "周六"
*
* // 完整
* <WeekdayDisplay
*   weekday={dayjs()}
*   format={{ full: true }}
* />
* // => "Saturday" / "星期六"
*
* // 单字母
* <WeekdayDisplay
*   weekday={dayjs()}
*   format={{ singleLetter: true }}
* />
* // => "S" / "六"
*/
const WeekdayDisplay = ({ 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-datetime-display-weekday ${className || ""}`.trim(),
		style: inlineStyle
	}, formattedWeekday);
};
//#endregion
exports.default = WeekdayDisplay;
