Spaces:
Runtime error
Runtime error
File size: 351 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import React from "react";
import { Box, Text } from "ink";
export function CodeBlock({ code = "", language }) {
return (
<Box flexDirection="column" borderStyle="single" borderColor="gray" paddingX={1}>
{language && (
<Text dimColor bold>
{language}
</Text>
)}
<Text>{code}</Text>
</Box>
);
}
|