| 15 | } |
| 16 | |
| 17 | export interface CompiledCodeProps { |
| 18 | code: Array<File>; |
| 19 | css?: Record<string, string>; |
| 20 | background?: { |
| 21 | lightMode: keyof typeof vars.palette; |
| 22 | darkMode: keyof typeof vars.palette; |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | export const CompiledCode = ({ code, css, background }: CompiledCodeProps) => { |
| 27 | const [activeFileName, setActiveFileName] = useState(code[0].fileName); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…