Files
universal-registrar/apps/web/src/ui/LogDetails.jsx
T
reform 8044e88be4
CI / offline-tests (push) Has been cancelled
CI / web-unit-tests (push) Has been cancelled
CI / package-console10 (push) Has been cancelled
recovered from aaronjaworski710
2026-10-23 20:02:14 +03:00

12 lines
434 B
React

// Collapsible raw-response log. Toast/banner carry the primary feedback;
// the raw JSON is demoted to expandable evidence (batch-2 IA decision).
export function LogDetails({ text, summary = "Детали ответа", compact = false }) {
if (!text) return null;
return (
<details class="log-details">
<summary>{summary}</summary>
<pre class={compact ? "log compact" : "log"}>{text}</pre>
</details>
);
}