(props: {
title: string;
subtitle: string;
stats: Array<[string, string | number]>;
})
| 922 | } |
| 923 | |
| 924 | function Overview(props: { |
| 925 | title: string; |
| 926 | subtitle: string; |
| 927 | stats: Array<[string, string | number]>; |
| 928 | }) { |
| 929 | return ( |
| 930 | <section class="overview"> |
| 931 | <div> |
| 932 | <h2>{props.title}</h2> |
| 933 | <p>{props.subtitle}</p> |
| 934 | </div> |
| 935 | <dl class="stats-strip"> |
| 936 | {props.stats.map(([label, value]) => ( |
| 937 | <div> |
| 938 | <dt>{label}</dt> |
| 939 | <dd>{typeof value === "number" ? formatNumber(value) : value}</dd> |
| 940 | </div> |
| 941 | ))} |
| 942 | </dl> |
| 943 | </section> |
| 944 | ); |
| 945 | } |
| 946 | |
| 947 | function DetailHeader(props: { |
| 948 | eyebrow: unknown; |
nothing calls this directly
no test coverage detected