Global Theme Management with useContext and Custom Hook
Implement a global theme switcher in React using `createContext` and `useContext`. This snippet shows how to create a custom `useTheme` hook for easy theme access and toggling across components.