import SecaoHeader from "../components/SecaoHeader.jsx"; import StatGrid from "../components/StatGrid.jsx"; import HighlightsCards from "../components/HighlightsCards.jsx"; import { num } from "../format.js"; export default function Satisfaction({ dia }) { const s = dia.metrics?.satisfaction || {}; if (!s.configured) { return (
⚙️ {s.message || "Satisfação não configurada."}
); } if (!s.responses) { return (
{s.message || "Sem respostas de satisfação nesse dia."}
); } const motivos = s.top_negative_reasons || {}; const chaves = Object.keys(motivos); return ( <>
{chaves.length > 0 && (
{chaves.map((k) => ( {k} ({motivos[k]}) ))}
)}
); }