You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
524 B
TypeScript
20 lines
524 B
TypeScript
"use client";
|
|
|
|
import * as React from "react";
|
|
import { NextUIProvider } from "@nextui-org/system";
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
import { ThemeProviderProps } from "next-themes/dist/types";
|
|
|
|
export interface ProvidersProps {
|
|
children: React.ReactNode;
|
|
themeProps?: ThemeProviderProps;
|
|
}
|
|
|
|
export function Providers({ children, themeProps }: ProvidersProps) {
|
|
return (
|
|
<NextUIProvider>
|
|
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
|
|
</NextUIProvider>
|
|
);
|
|
}
|