react-code-blocks
react-code-blocks copied to clipboard
`CopyBlock` prop 'theme' incompatible with `CodeBlock` prop 'theme'
I'd have expected the types to be compatible, but they don't overlap sufficiently.
It seems like CodeBlock
's theme
prop is styled-component
's DefaultTheme
interface, whereas CopyBlock
's is this library's own Theme
interface.
Should they be the same? Otherwise how can I safely pass e.g. the monoBlue
theme to CodeBlock
?