fix(ui): cast syntax highlighter theme through unknown

This commit is contained in:
mubashir1osmani 2026-08-08 12:15:09 -07:00
parent 38e1fe8ffd
commit 4aff515a8e

View file

@ -48,7 +48,7 @@ const ReasoningContent: React.FC<ReasoningContentProps> = ({ reasoningContent })
const match = /language-(\w+)/.exec(className || "");
return !inline && match ? (
<SyntaxHighlighter
style={coy as Record<string, React.CSSProperties>}
style={coy as unknown as { [key: string]: React.CSSProperties }}
language={match[1]}
PreTag="div"
className="my-2 rounded-md"