import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { BackgroundTaskStatus } from "./BackgroundTaskStatus.js";
export function backgroundTaskSummary(id, status) {
    return `${id || "task"} | ${status || "unknown"}`;
}
export function BackgroundTask(props) {
    return (_jsxs(Box, { children: [_jsx(BackgroundTaskStatus, { status: props.status }), _jsxs(Text, { children: [" ", props.title ?? props.id] })] }));
}
