/* * @Description: * @Version: 0.0.1 * @Author: yujiangping * @Date: 2025-11-18 16:27:41 * @LastEditors: yujiangping * @LastEditTime: 2025-11-19 19:59:36 */ import { Divider } from 'antd'; import type { ReactElement } from 'react'; export interface InfoItem { key: string; label: string; value: string | number | undefined | ReactElement; icon?: string; } interface InfoPanelProps { title: string; items: InfoItem[]; className?: string; } const InfoPanel = ({ title, items, className = '' }: InfoPanelProps) => { return (

{title}

{items.map((item) => (
{item.icon && }
{item.label} {item.value ?? '-'}
))}
); }; export default InfoPanel;