@brightlayer-ui/react-auth-workflow
Version:
Re-usable workflow components for Authentication and Registration within Eaton applications.
11 lines (10 loc) • 338 B
JavaScript
/**
* @packageDocumentation
* @module ErrorContextProvider
*/
import React from 'react';
import { ErrorContext } from './context.js';
export const ErrorContextProvider = (props) => {
const { children, ...ErrorContextProps } = props;
return React.createElement(ErrorContext.Provider, { value: ErrorContextProps }, children);
};