({
language,
code,
files,
onRequestFix,
}: {
language?: string;
code?: string;
files?: Array<{ path: string; content: string }>;
onRequestFix?: (e: string) => void;
})
| 1 | import CodeRunnerReact from "./code-runner-react"; |
| 2 | |
| 3 | export default function CodeRunner({ |
| 4 | language, |
| 5 | code, |
| 6 | files, |
| 7 | onRequestFix, |
| 8 | }: { |
| 9 | language?: string; |
| 10 | code?: string; |
| 11 | files?: Array<{ path: string; content: string }>; |
| 12 | onRequestFix?: (e: string) => void; |
| 13 | }) { |
| 14 | const actualFiles = |
| 15 | files || (code ? [{ path: "App.tsx", content: code }] : []); |
| 16 | return <CodeRunnerReact files={actualFiles} onRequestFix={onRequestFix} />; |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected