Files
website/components/providers.tsx
2025-09-12 23:20:36 +02:00

20 lines
611 B
TypeScript

// file: components/providers.tsx
"use client";
import { MotionConfig } from "motion/react";
import { ThemeProvider } from "@/components/theme-provider";
import { TooltipProvider } from "@/components/ui/tooltip";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<ThemeProvider attribute="class" defaultTheme="light">
{/* MotionConfig is the key fix for the animation issues */}
<MotionConfig reducedMotion="user">
<TooltipProvider delayDuration={0}>
{children}
</TooltipProvider>
</MotionConfig>
</ThemeProvider>
);
}