Spaces:
Running
Running
Download frontends/react/src/Usage.tsx from nhamid289/optimization-dev: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/src/Usage.tsx
- Command line
-
hf download hf://spaces/nhamid289/optimization-dev/frontends/react/src/Usage.tsx
-
curl -L -o Usage.tsx https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/src/Usage.tsx
761 Bytes
| import ReactMarkdown from "react-markdown"; | |
| import usageMarkdown from "./usage.md?raw"; | |
| export default function Usage() { | |
| return ( | |
| <div className="prose leading-loose"> | |
| <ReactMarkdown | |
| components={{ | |
| h2: ({ children }) => <h2 className="text-xl font-semibold mt-12 mb-2 first:mt-4">{children}</h2>, | |
| p: ({ children }) => <p className="leading-6 mb-3 last:mb-0">{children}</p>, | |
| ol: ({ children }) => <ol className="list-decimal pl-5 mb-3">{children}</ol>, | |
| li: ({ children }) => <li className="mb-1">{children}</li>, | |
| code: ({ children }) => <code className="bg-gray-200 px-1 py-0.5 rounded">{children}</code>, | |
| }} | |
| > | |
| {usageMarkdown} | |
| </ReactMarkdown> | |
| </div> | |
| ); | |
| } | |