
  const toggleColorMode = (): void => {
    setColorMode(colorMode === 'light' ? 'dark' : 'light')
  }
  return (
    <StyledProvider theme={getTheme(colorMode)}>
      <Provider
        value={{
          colorMode,
          setColorMode: toggleColorMode,
        }}
      >