Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123000985
Sections.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
Wed, Jul 23, 09:10
Size
819 B
Mime Type
text/x-java
Expires
Fri, Jul 25, 09:10 (2 d)
Engine
blob
Format
Raw Data
Handle
27527916
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Sections.js
View Options
import
"core-js/modules/es.array.filter"
;
import
"core-js/modules/es.array.map"
;
import
React
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
Section
from
'rsg-components/Section'
;
import
SectionsRenderer
from
'rsg-components/Sections/SectionsRenderer'
;
var
Sections
=
function
Sections
(
_ref
)
{
var
sections
=
_ref
.
sections
,
depth
=
_ref
.
depth
;
return
/*#__PURE__*/
React
.
createElement
(
SectionsRenderer
,
null
,
sections
.
filter
(
function
(
section
)
{
return
!
section
.
externalLink
;
}).
map
(
function
(
section
,
idx
)
{
return
/*#__PURE__*/
React
.
createElement
(
Section
,
{
key
:
idx
,
section
:
section
,
depth
:
depth
});
}));
};
Sections
.
propTypes
=
{
sections
:
PropTypes
.
array
.
isRequired
,
depth
:
PropTypes
.
number
.
isRequired
,
root
:
PropTypes
.
bool
};
export
default
Sections
;
Event Timeline
Log In to Comment