import { Fragment } from "react"; import type { CodeLine } from "@/lib/code-tokens"; export function CodeTokens({ lines }: { lines: CodeLine[] }) { return <>{lines.map((line, lineIndex) => {line.tokens.map((token, index) => token.color || token.fontStyle ? {token.content} : token.content)} )}; }