'use client';
import 'react';
import PropTypes from '../../../../_virtual/index8.mjs';
import { Global } from '../../../@emotion/react/dist/emotion-react.browser.development.esm.mjs';
import { jsx } from 'react/jsx-runtime';

function isEmpty$2(obj) {
  return obj === undefined || obj === null || Object.keys(obj).length === 0;
}
function GlobalStyles$2(props) {
  const {
    styles,
    defaultTheme = {}
  } = props;
  const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$2(themeInput) ? defaultTheme : themeInput) : styles;
  return /*#__PURE__*/jsx(Global, {
    styles: globalStyles
  });
}
GlobalStyles$2.propTypes = {
  defaultTheme: PropTypes.object,
  styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])
} ;

export { GlobalStyles$2 as default };
//# sourceMappingURL=GlobalStyles.mjs.map
