File indexing completed on 2025-01-26 05:27:59

0001 import React, {createContext,useState} from 'react';
0002 export const PlingSectionContext = createContext();
0003 
0004 const PlingSectionContextProvider = (props) => {
0005     
0006     const [state, setState] = useState({...props.config})
0007     return (
0008         <PlingSectionContext.Provider value={{state, setState}}>
0009          {props.children}
0010         </PlingSectionContext.Provider>        
0011     )
0012 }
0013 export default PlingSectionContextProvider
0014 
0015 
0016 
0017