import SecaoHeader from "../components/SecaoHeader.jsx"; import StatGrid from "../components/StatGrid.jsx"; import HighlightsCards from "../components/HighlightsCards.jsx"; import { moeda, num } from "../format.js"; export default function Cancellations({ dia }) { const c = dia.metrics?.cancellations || {}; if (!c.configured) { return (
⚙️ {c.message || "Cancelamento não configurado."}
); } const produtos = c.cancellations_by_product || {}; const chaves = Object.keys(produtos); return ( <>
{chaves.length > 0 && (
{chaves.map((k) => ( {k} ({produtos[k]}) ))}
)}
); }