import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import { Box } from "ink";
export function ChatLayout({ columns, rows, children }) {
    if (rows !== undefined) {
        return (_jsx(Box, { flexDirection: "column", width: columns, height: rows, flexShrink: 0, flexGrow: 0, children: children }));
    }
    return (_jsx(Box, { flexDirection: "column", width: columns, flexShrink: 0, flexGrow: 0, children: children }));
}
export function ChatLiveArea({ children, clampRows }) {
    return (_jsx(Box, { flexDirection: "column", flexGrow: 0, flexShrink: 1, overflowY: "hidden", ...(clampRows !== undefined
            ? { height: clampRows, justifyContent: "flex-end" }
            : {}), children: children }));
}
export function ChatControls({ controlsRef, children }) {
    return (_jsx(Box, { ref: controlsRef, flexDirection: "column", flexShrink: 0, flexGrow: 0, children: children }));
}
export function ChatInputFooterStack({ columns, children }) {
    return (_jsx(Box, { flexDirection: "column", width: columns, children: children }));
}
//# sourceMappingURL=ChatLayout.js.map