UNPKG

orcs-design-system

Version:
48 lines 1.18 kB
import React from "react"; import PropTypes from "prop-types"; import { ThemeProvider } from "styled-components"; import { default as GlobalStyles } from "./GlobalStyles"; import systemtheme from "./systemtheme"; import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; const SystemThemeProvider = _ref => { let { children, theme = systemtheme } = _ref; return /*#__PURE__*/_jsx(ThemeProvider, { theme: theme, children: /*#__PURE__*/_jsxs(_Fragment, { children: [/*#__PURE__*/_jsx(GlobalStyles, {}), children] }) }); }; SystemThemeProvider.propTypes = { children: PropTypes.node, theme: PropTypes.object }; SystemThemeProvider.__docgenInfo = { "description": "", "methods": [], "displayName": "SystemThemeProvider", "props": { "theme": { "defaultValue": { "value": "systemtheme", "computed": true }, "description": "", "type": { "name": "object" }, "required": false }, "children": { "description": "", "type": { "name": "node" }, "required": false } } }; export default SystemThemeProvider;