import {ThemeContext} from './theme-context'; function ThemeTogglerButton() { // highlight-range{1-2,5} // The Theme Toggler Button receives not only the theme // but also a toggleTheme function from the context return ( {({theme, toggleTheme}) => ( )} ); } export default ThemeTogglerButton;