Hard
What's the optimal way to implement the missing parts of this theme provider?
1const ThemeContext = createContext();23const themes = {4 light: {5 background: '#fff',6 text: '#000',7 primary: '#0070f3'8 },9 dark: {10 background: '#1a1a1a',11 text: '#fff',12 primary: '#0070f3'13 }14};1516const ThemeProvider = ({ children }) => {17 const [theme, setTheme] = useState('light');18 const [customColors, setCustomColors] = useState({});1920 ________________________21 ________________________22 ________________________2324 return (25 <ThemeContext.Provider value={value}>26 <div style={{27 background: currentTheme.background,28 color: currentTheme.text29 }}>30 {children}31 </div>32 </ThemeContext.Provider>33 );34};