import { formatNumber, formatPercent } from "../utils/format.js"; import { MiniStat } from "./MiniStat.jsx"; import { Panel } from "./Panel.jsx"; export function FunnelPanel({ funnel, loading = false, sideMetrics }) { return (
{loading ? Array.from({ length: 3 }).map((_, index) => ) : funnel.map((item, index) => (
{item.name} {formatNumber(item.value)}
{formatPercent(item.rate)}
))}
{loading ? Array.from({ length: 3 }).map((_, index) => ) : sideMetrics.map((item) => ( ))}
); }