import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { readProjectMemory } from "../memdir/projectMemory.js";
export function MemoryPanel(props) {
    const memory = readProjectMemory(props.projectPath).trim();
    return (_jsx(Box, { flexDirection: "column", children: memory ? (memory.split(/\r?\n/).slice(-4).map((line, index) => _jsx(Text, { children: line }, index))) : (_jsx(Text, { color: "gray", children: "No project memory" })) }));
}
