Spaces:
Runtime error
Runtime error
Download src/components/base/code.tsx from failfast/nextjs-hf-spaces: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/failfast/nextjs-hf-spaces/resolve/main/src/components/base/code.tsx
- Command line
-
hf download hf://spaces/failfast/nextjs-hf-spaces/src/components/base/code.tsx
-
curl -L -o code.tsx https://huggingface.co/spaces/failfast/nextjs-hf-spaces/resolve/main/src/components/base/code.tsx
490 Bytes
| import { styled } from "@mui/material/styles"; | |
| import { Paper, PaperProps } from "@mui/material"; | |
| type CodeProps = { | |
| children: string; | |
| }; | |
| const CodeBox = styled(Paper)<PaperProps>(({ theme }) => ({ | |
| fontFamily: "monospace", | |
| padding: 8, | |
| borderTop: `2px solid ${theme.palette.secondary.dark}`, | |
| borderBottom: `2px solid ${theme.palette.secondary.dark}`, | |
| })); | |
| export default function Code(props: CodeProps) { | |
| const { children } = props; | |
| return <CodeBox>{children}</CodeBox>; | |
| } | |