import type { Component } from "solid-js"; import { Show } from "solid-js"; export type StatTileProps = { label: string; value: string; caption?: string; Icon: Component<{ class?: string }>; }; /** Figma "Web / Stat Tile": subtle label + icon on top, a large value, an * optional plain-text caption below. No delta arrow is drawn here — this * project has no historical baseline to diff against, and a fabricated trend * is worse than none. */ export function StatTile(props: StatTileProps) { return (
{props.label}
{props.value}
{props.caption}