import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from "react";
import { Box, Text } from "ink";
import { BackgroundTasksBar } from "./BackgroundTasksBar.js";
export function FooterStatusRow({ columns, layout, tasks, focused, expanded, selectedIndex, onExpand, onCollapse, onKill, onExit, onNavigate, theme, }) {
    if (!layout.hasBackgroundTasks && !layout.hasUpdateNotice)
        return null;
    return (_jsxs(Box, { flexDirection: layout.stack ? "column" : "row", width: columns, children: [layout.hasBackgroundTasks && (_jsx(BackgroundTasksBar, { tasks: tasks, focused: focused, expanded: expanded, selectedIndex: selectedIndex, onExpand: onExpand, onCollapse: onCollapse, onKill: onKill, onExit: onExit, onNavigate: onNavigate, compact: layout.compactBackgroundTasks })), layout.hasUpdateNotice && (_jsx(Box, { paddingLeft: layout.stack || !layout.hasBackgroundTasks ? 1 : 2, paddingRight: 1, children: _jsx(Text, { color: theme.success, bold: true, wrap: "truncate", children: "\u2728 Update ready \u00B7 restart to apply" }) }))] }));
}
//# sourceMappingURL=FooterStatusRow.js.map