recovered from aaronjaworski710
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user