@discostudioteam/react-code-blocks
Version:
Modified rajinwonderland's modification of Atlaskit's Code Block!
10 lines (7 loc) • 353 B
text/typescript
import { ThemeProps, Theme } from 'types';
const DEFAULT_THEME_MODE = 'light';
// Resolves the different types of theme objects in the current API
export default function getTheme(props?: ThemeProps): Theme {
// If format not supported (or no theme provided), return standard theme
return { mode: DEFAULT_THEME_MODE, ...props?.theme };
}