"use client"; import type { ThemeProviderProps } from "next-themes/dist/types"; import * as React from "react"; import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes"; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return {children}; } export function useToggleTheme() { const { theme, setTheme } = useTheme(); if (theme == "dark") { return () => setTheme("light"); } else { return () => setTheme("dark"); } }