import * as React from "react" export function CodeFrame({ decoded }) { if (!decoded) { return (
)
}
return (
{decoded.map((entry, index) => {
const style = {
color: entry.fg ? `var(--color-${entry.fg})` : undefined,
...(entry.decoration === `bold`
? { fontWeight: 800 }
: entry.decoration === `italic`
? { fontStyle: `italic` }
: undefined),
}
return (
{entry.content}
)
})}
)
}