UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

34 lines 1.01 kB
import React from 'react'; export const defaultContextState = { hasContext: false, data: undefined, schema: undefined, submitState: undefined, handlePathChange: () => null, handlePathChangeUnvalidated: () => null, updateDataValue: () => null, setData: () => null, validateData: () => null, handleSubmit: () => null, scrollToTop: () => null, showAllErrors: false, hasVisibleError: false, formState: undefined, activeSubmitButtonId: undefined, setFormState: () => null, setSubmitState: () => null, setActiveSubmitButtonId: () => null, handleSubmitCall: () => null, setShowAllErrors: () => null, setMountedFieldState: () => null, hasErrors: () => false, hasFieldState: () => false, hasFieldError: () => false, contextErrorMessages: undefined, registerSectionSchema: () => () => undefined, sectionSchemaPathsRef: undefined, props: null }; const Context = React.createContext(defaultContextState); export default Context; //# sourceMappingURL=Context.js.map