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