import { Text, View } from "@tarojs/components"; import type { KvMetric } from "../../pages/report/types"; import { getStatusTone } from "../../pages/report/report-utils"; type ReportKvListProps = { title: string; items: KvMetric[]; }; export function ReportKvList({ title, items }: ReportKvListProps) { return ( {title} {items.map((item) => ( {item.label} {item.value} {item.status ? {item.status} : null} ))} ); }