| 1 | import React from "react"; |
| 2 | |
| 3 | export interface SyntaxHighlighterTheme { |
| 4 | keyword: string; |
| 5 | string: string; |
| 6 | comment: string; |
| 7 | number: string; |
| 8 | operator: string; |
| 9 | } |
| 10 | |
| 11 | export const defaultTheme: SyntaxHighlighterTheme = { |
| 12 | keyword: "blue", |
| 13 | string: "green", |
| 14 | comment: "gray", |
| 15 | number: "yellow", |
| 16 | operator: "cyan", |
| 17 | }; |
| 18 | |
| 19 | export function highlightCode(code: string): React.ReactNode[] { |
| 20 | // Mock implementation that just returns the code as plain text |
| 21 | return [React.createElement("ink-text", { key: "mock-code" }, code)]; |
| 22 | } |
| 23 | |
| 24 | export function detectLanguage(): string { |
| 25 | // Mock implementation |
| 26 | return "javascript"; |
| 27 | } |