20 lines
475 B
TypeScript
20 lines
475 B
TypeScript
'use client';
|
|
|
|
import * as React from 'react';
|
|
import { ThemeProvider } from 'next-themes';
|
|
import { TooltipProvider } from '@/components/ui/tooltip';
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
export function Providers({ children }: PropsWithChildren) {
|
|
return (
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<TooltipProvider>{children}</TooltipProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|