import React, { createContext, useState } from 'react';//Création du contexteexport const ThemeContext = createContext();//Provider du contexteconst ThemeProvider = ({children}) => {//par défault, le theme est sur lightconst [theme,setTheme] = useState("light");return (<ThemeContext.Provider value={{theme, setTheme}}>{children}</ThemeContext.Provider>);};export default ThemeProvider;