Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99855951
GlobalStyles.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 26, 23:52
Size
884 B
Mime Type
text/x-java
Expires
Tue, Jan 28, 23:52 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
23835320
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
GlobalStyles.js
View Options
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
)
{
var
styles
=
props
.
styles
,
_props$defaultTheme
=
props
.
defaultTheme
,
defaultTheme
=
_props$defaultTheme
===
void
0
?
{}
:
_props$defaultTheme
;
var
globalStyles
=
typeof
styles
===
'function'
?
function
(
themeInput
)
{
return
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
.
string
,
PropTypes
.
object
,
PropTypes
.
func
])
}
:
void
0
;
Event Timeline
Log In to Comment