import { Global } from '@emotion/core';
import * as React from 'react';
import { ThemeProvider as TP } from 'emotion-theming';
import tokens, { Theme, ThemeColors } from '../tokens';
const Reset = (): React.ReactElement => (
);
Reset.displayName = 'Monterey(Reset)';
const ThemeProvider = ({
children,
reset = true,
theme = {},
...props
}: React.HTMLAttributes & {
children?: any;
reset?: boolean;
theme?: any;
}): React.ReactElement => (
<>
{reset && }
{children}
>
);
ThemeProvider.displayName = 'Monterey(ThemeProvider)';
ThemeProvider.defaultProps = {
reset: true,
theme: tokens,
};
function useTheme(): Theme {
return tokens;
}
export {
useTheme,
tokens as theme,
ThemeProvider as default,
Theme,
ThemeColors,
};