import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
export function promptNotificationLines(notifications, limit = 3) {
    return notifications.map((item) => item.trim()).filter(Boolean).slice(0, limit);
}
export function Notifications(props) {
    const lines = promptNotificationLines(props.notifications);
    if (!lines.length)
        return null;
    return (_jsx(Box, { flexDirection: "column", children: lines.map((line) => (_jsx(Text, { color: "gray", children: line }, line))) }));
}
