Faisal Amir 222b4ad897
feat: temporary remove dark mode :( (#2168)
* remove darkmode

* fix progress component background color
2024-02-27 20:39:57 +07:00

29 lines
599 B
TypeScript

'use client'
import { PropsWithChildren } from 'react'
import { ThemeProvider } from 'next-themes'
import { motion as m } from 'framer-motion'
export default function ThemeWrapper({ children }: PropsWithChildren) {
return (
<ThemeProvider attribute="class" forcedTheme="light">
<m.div
initial={{ opacity: 0, y: -10 }}
animate={{
opacity: 1,
y: 0,
transition: {
duration: 0.5,
type: 'spring',
stiffness: 200,
},
}}
>
{children}
</m.div>
</ThemeProvider>
)
}