import { fmtMoney } from "../lib/money";

export function Tile({ label, amount, sub }: { label: string; amount: string; sub: string }) {
  return (
    <div className="tile">
      <div className="k">{label}</div>
      <div className="v">{fmtMoney(amount)}</div>
      <div className="s">{sub}</div>
    </div>
  );
}
