mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
20 lines
532 B
TypeScript
20 lines
532 B
TypeScript
"use client";
|
|
|
|
import { SessionProvider } from "next-auth/react";
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
import { ThemeProviderProps } from "next-themes/dist/types";
|
|
import { ReactNode } from "react";
|
|
|
|
export interface ProvidersProps {
|
|
children: ReactNode;
|
|
themeProps?: ThemeProviderProps;
|
|
}
|
|
|
|
export function Providers({ children, themeProps }: ProvidersProps) {
|
|
return (
|
|
<SessionProvider>
|
|
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
|
|
</SessionProvider>
|
|
);
|
|
}
|