Sindbad~EG File Manager

Current Path : /home/escuelai/public_html/sitio_anterior/wp-content/plugins/elementor/app/assets/js/
Upload File :
Current File : /home/escuelai/public_html/sitio_anterior/wp-content/plugins/elementor/app/assets/js/app-context.js

import { useState } from 'react';

export const AppContext = React.createContext();

export default function AppProvider( props ) {
	const initialState = {
			isDarkMode: document.body.classList.contains( `eps-theme-dark` ),
		},
		[ state, setState ] = useState( initialState );

	return (
		<AppContext.Provider value={ { state, setState } }>
			{ props.children }
		</AppContext.Provider>
	);
}

AppProvider.propTypes = {
	children: PropTypes.object.isRequired,
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists