12 lines
434 B
React
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>
|
|
);
|
|
}
|