Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101068235
TabsContext.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, Feb 5, 10:11
Size
715 B
Mime Type
text/x-java
Expires
Fri, Feb 7, 10:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24087938
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
TabsContext.js
View Options
import
*
as
React
from
'react'
;
/**
* @ignore - internal component.
*/
var
Context
=
/*#__PURE__*/
React
.
createContext
(
null
);
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
Context
.
displayName
=
'TabsContext'
;
}
/**
* @returns {unknown}
*/
export
function
useTabContext
()
{
return
React
.
useContext
(
Context
);
}
export
function
getPanelId
(
context
,
value
)
{
var
idPrefix
=
context
.
idPrefix
;
if
(
idPrefix
===
null
)
{
return
null
;
}
return
""
.
concat
(
context
.
idPrefix
,
"-P-"
).
concat
(
value
);
}
export
function
getTabId
(
context
,
value
)
{
var
idPrefix
=
context
.
idPrefix
;
if
(
idPrefix
===
null
)
{
return
null
;
}
return
""
.
concat
(
context
.
idPrefix
,
"-T-"
).
concat
(
value
);
}
export
default
Context
;
Event Timeline
Log In to Comment