Open fnune opened 4 months ago
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.
CodeBlock
theme
styled-component
DefaultTheme
CopyBlock
Theme
Should they be the same? Otherwise how can I safely pass e.g. the monoBlue theme to CodeBlock?
monoBlue
I'd have expected the types to be compatible, but they don't overlap sufficiently.
It seems like
CodeBlock
'stheme
prop isstyled-component
'sDefaultTheme
interface, whereasCopyBlock
's is this library's ownTheme
interface.Should they be the same? Otherwise how can I safely pass e.g. the
monoBlue
theme toCodeBlock
?