Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122754324
NavbarCollapse.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
Mon, Jul 21, 23:51
Size
759 B
Mime Type
text/x-java
Expires
Wed, Jul 23, 23:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27554478
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
NavbarCollapse.js
View Options
import
*
as
React
from
'react'
;
import
{
useContext
}
from
'react'
;
import
Collapse
from
'./Collapse'
;
import
{
useBootstrapPrefix
}
from
'./ThemeProvider'
;
import
NavbarContext
from
'./NavbarContext'
;
import
{
jsx
as
_jsx
}
from
"react/jsx-runtime"
;
const
NavbarCollapse
=
/*#__PURE__*/
React
.
forwardRef
(({
children
,
bsPrefix
,
...
props
},
ref
)
=>
{
bsPrefix
=
useBootstrapPrefix
(
bsPrefix
,
'navbar-collapse'
);
const
context
=
useContext
(
NavbarContext
);
return
/*#__PURE__*/
_jsx
(
Collapse
,
{
in
:
!!
(
context
&&
context
.
expanded
),
...
props
,
children
:
/*#__PURE__*/
_jsx
(
"div"
,
{
ref
:
ref
,
className
:
bsPrefix
,
children
:
children
})
});
});
NavbarCollapse
.
displayName
=
'NavbarCollapse'
;
export
default
NavbarCollapse
;
Event Timeline
Log In to Comment