Files
portfolio/services/nextjs/providers/theme-provider.tsx
Mayne0213 913575ecc0 FIX(app): replace submodule with files
- Remove services/nextjs as git submodule
- Add complete Next.js application source code
- Include package.json and package-lock.json for npm cache
- This fixes the GitHub Actions cache error
2025-11-23 23:43:22 +09:00

18 lines
410 B
TypeScript

'use client';
import * as React from 'react';
import dynamic from 'next/dynamic';
import { ThemeProviderProps } from 'next-themes';
const NextThemesProvider = dynamic(
() => import('next-themes').then((e) => e.ThemeProvider),
{
ssr: false,
}
);
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}