"use client";

import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";

/**
 * ThemeProvider wrapper for next-themes
 * next-themes v0.3.0+ changed its export structure.
 * Using a more robust way to handle types.
 */
export function ThemeProvider({
  children,
  ...props
}: React.ComponentProps<typeof NextThemesProvider>) {
  return (
    <NextThemesProvider {...props}>{children}</NextThemesProvider>
  );
}
