"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.styled = exports.useTheme = exports.withTheme = exports.ThemeProvider = exports.GlobalStyles = exports.keyframes = exports.createGlobalStyle = exports.css = void 0;
/* eslint-disable import/no-duplicates */
const react_1 = __importStar(require("react"));
const styledComponents = __importStar(require("styled-components"));
const GlobalStyles_1 = require("./GlobalStyles");
Object.defineProperty(exports, "GlobalStyles", { enumerable: true, get: function () { return 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