import React from "react";
//#region src/components/pisellMetricCard/components/MetricValue.tsx
/**
* MetricValue 数值展示组件
* 
* 负责渲染格式化后的主数值
* 支持自定义字号、字重、颜色等样式
* 
* @param props 组件属性
*/
const MetricValue = ({ value, valueSize = 30, valueWeight = 600, valueColor = "rgba(0, 0, 0, 0.85)" }) => {
	const displayValue = value !== null && value !== void 0 ? value : "-";
	return /* @__PURE__ */ React.createElement("div", {
		className: "pisell-metric-card-value",
		style: {
			fontSize: typeof valueSize === "number" ? `${valueSize}px` : valueSize,
			fontWeight: valueWeight,
			color: valueColor
		}
	}, displayValue);
};
//#endregion
export { MetricValue as default };
