import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { compactPath } from "../commands/format.js";
export function SessionList(props) {
    return (_jsx(Box, { flexDirection: "column", children: props.sessions.length === 0 ? (_jsx(Text, { color: "gray", children: "No sessions" })) : (props.sessions.map((session) => (_jsx(Text, { children: `${session.sessionId} ${Math.round(session.bytes / 1024)}KB ${compactPath(session.path, 50)}` }, session.sessionId)))) }));
}
