"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable import/no-duplicates */
const react_1 = __importStar(require("react"));
const styledComponents = __importStar(require("styled-components"));
const GlobalStyles_1 = require("./GlobalStyles");
exports.GlobalStyles = GlobalStyles_1.GlobalStyles;
const theme_1 = require("./theme");
const { default: styled, css, createGlobalStyle, withTheme, keyframes, ThemeContext } = styledComponents;
exports.styled = styled;
exports.css = css;
exports.createGlobalStyle = createGlobalStyle;
exports.withTheme = withTheme;
exports.keyframes = keyframes;
const ScThemeProvider = styledComponents.ThemeProvider;
// Custom <ThemeProvider> component allows us to define a default theme
const ThemeProvider = ({ theme = theme_1.theme, children }) => {
    return (react_1.default.createElement(ScThemeProvider, { theme: theme },
        react_1.default.createElement(react_1.Fragment, null,
            react_1.default.createElement(GlobalStyles_1.GlobalStyles, null),
            children)));
};
exports.ThemeProvider = ThemeProvider;
const useTheme = () => {
    return react_1.useContext(ThemeContext);
};
exports.useTheme = useTheme;
//# sourceMappingURL=index.js.map