import React from 'react';
import FormContext, { IAppContext } from './AppContext';

export const AppProvider: React.FunctionComponent<{ initialData: IAppContext; children: any }> = ({
   initialData = {},
   children,
}) => {
   return <FormContext.Provider value={initialData}>{children}</FormContext.Provider>;
};
