Download bin/cli/tui-components/CodeBlock.jsx from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/bin/cli/tui-components/CodeBlock.jsx
- Command line
-
hf download hf://spaces/automindy/fiemwl/bin/cli/tui-components/CodeBlock.jsx
-
curl -L -o CodeBlock.jsx https://huggingface.co/spaces/automindy/fiemwl/resolve/main/bin/cli/tui-components/CodeBlock.jsx
366 Bytes
| 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> | |
| ); | |
| } | |