UNPKG

@discostudioteam/react-code-blocks

Version:

Modified rajinwonderland's modification of Atlaskit's Code Block!

18 lines (16 loc) 378 B
import getTheme from './getTheme'; export default function themed(modesOrVariant: { light: string; dark: string; }) { var modes = modesOrVariant; return function( props: | import('../types').CustomThemeProps | import('../types').NoThemeProps | undefined ) { var theme = getTheme(props); return modes[theme.mode]; }; }