nomadro/apps/ebook/src/components/Providers.tsx
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 23:52:00 -05:00

28 lines
584 B
TypeScript

'use client';
import { ThemeProvider } from 'next-themes';
import { LocaleProvider } from './LocaleProvider';
import type { Locale } from '@ebook/lib/i18n';
export function Providers({
children,
locale,
}: {
children: React.ReactNode;
locale?: Locale;
}) {
return (
<LocaleProvider initialLocale={locale}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem={false}
themes={['light', 'dark', 'sepia']}
storageKey="nomadro-theme"
>
{children}
</ThemeProvider>
</LocaleProvider>
);
}