capsule-ai-cli
Version:
The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing
29 lines • 1.38 kB
JavaScript
import React from 'react';
import { Box, Text } from 'ink';
export const PastedContent = ({ content, lineCount }) => {
const lines = content.split('\n').slice(0, 10);
const hasMore = content.split('\n').length > 10;
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "gray", paddingX: 1, marginY: 1 },
React.createElement(Box, { marginBottom: 1 },
React.createElement(Text, { color: "green" },
"[Pasted text #",
lineCount,
" lines]")),
lines.map((line, index) => (React.createElement(Box, { key: index },
React.createElement(Text, { color: "gray" },
String(index + 1).padStart(3, ' '),
": "),
React.createElement(Text, null,
line.substring(0, 80),
line.length > 80 ? '...' : '')))),
hasMore && (React.createElement(Box, { marginTop: 1 },
React.createElement(Text, { color: "gray" },
"... and ",
content.split('\n').length - 10,
" more lines"))),
React.createElement(Box, { marginTop: 1, justifyContent: "flex-end" },
React.createElement(Text, { color: "gray" },
lineCount,
" lines selected"))));
};
//# sourceMappingURL=PastedContent.js.map