import { Activity, PlusCircle, Truck, Warehouse } from 'lucide-react'; import type { SummaryMetricsProps } from './types'; export function SummaryMetrics({ summary: SUMMARY, operatingRate, inventoryRate, pendingRate, setVehicleSelection: setShowPlateNumbers, }: SummaryMetricsProps) { return ( <> {/* Header Summary - Ultra Compact */}
{/* Total Assets */}
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', source: 'asset', title: '资产概览' })}>
资产总数
{SUMMARY.totalAssets.toLocaleString()}
{/* Operating */}
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Operating', source: 'asset', title: '正在运营' })}>
总运营
{SUMMARY.operating.total} 自{SUMMARY.operating.self} 租{SUMMARY.operating.leased}{SUMMARY.operating.hanging > 0 && ` 挂${SUMMARY.operating.hanging}`}
{/* Inventory */}
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Inventory', source: 'asset', title: '库存总数' })}>
总库存
{SUMMARY.inventory.total} 库{SUMMARY.inventory.inStock} 异{SUMMARY.inventory.abnormal}
{/* Pending */}
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Pending', source: 'asset', title: '待交车' })}>
待交车
{SUMMARY.pendingDelivery}
运营概览
运营率
{operatingRate.toFixed(1)}%
库存率
{inventoryRate.toFixed(1)}%
待交率
{pendingRate.toFixed(1)}%
); }