import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { Pane } from "./design/Pane.js";
export function sandboxViolationLines(message) {
    return message
        .split(/\r?\n/)
        .map((line) => line.trim())
        .filter(Boolean)
        .slice(0, 12);
}
export function SandboxViolationExpandedView(props) {
    return (_jsx(Pane, { width: props.width, title: "Permission blocked", tone: "error", children: _jsx(Box, { flexDirection: "column", children: sandboxViolationLines(props.message).map((line) => (_jsx(Text, { children: line }, line))) }) }));
}
