import React from "react";
import { ArrowDownOutlined, ArrowUpOutlined } from "@ant-design/icons";
//#region src/components/pisellMetricCard/components/TrendIcon.tsx
/**
* TrendIcon 趋势箭头组件
* 
* 根据趋势类型显示上升或下降箭头
* - up: 显示上升箭头 ↑
* - down: 显示下降箭头 ↓
* - neutral: 不显示箭头
* 
* @param props 组件属性
*/
const TrendIcon = ({ trend, color }) => {
	if (trend === "neutral") return null;
	const Icon = trend === "up" ? ArrowUpOutlined : ArrowDownOutlined;
	return /* @__PURE__ */ React.createElement(Icon, {
		className: "pisell-metric-card-trend-icon",
		style: { color }
	});
};
//#endregion
export { TrendIcon as default };
