Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100923318
StepContext.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, Feb 3, 23:58
Size
475 B
Mime Type
text/x-java
Expires
Wed, Feb 5, 23:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24054459
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
StepContext.js
View Options
import
*
as
React
from
'react'
;
/**
* Provides information about the current step in Stepper.
*/
const
StepContext
=
/*#__PURE__*/
React
.
createContext
({});
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
StepContext
.
displayName
=
'StepContext'
;
}
/**
* Returns the current StepContext or an empty object if no StepContext
* has been defined in the component tree.
*/
export
function
useStepContext
()
{
return
React
.
useContext
(
StepContext
);
}
export
default
StepContext
;
Event Timeline
Log In to Comment