Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /styled-engine /GlobalStyles /GlobalStyles.js
Download frontend/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/styled-engine/GlobalStyles/GlobalStyles.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js
-
curl -L -o GlobalStyles.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/styled-engine/GlobalStyles/GlobalStyles.js
796 Bytes
| 'use client'; | |
| import * as React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Global } from '@emotion/react'; | |
| import { jsx as _jsx } from "react/jsx-runtime"; | |
| function isEmpty(obj) { | |
| return obj === undefined || obj === null || Object.keys(obj).length === 0; | |
| } | |
| export default function GlobalStyles(props) { | |
| const { | |
| styles, | |
| defaultTheme = {} | |
| } = props; | |
| const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty(themeInput) ? defaultTheme : themeInput) : styles; | |
| return /*#__PURE__*/_jsx(Global, { | |
| styles: globalStyles | |
| }); | |
| } | |
| process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes = { | |
| defaultTheme: PropTypes.object, | |
| styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func]) | |
| } : void 0; |