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>
28 lines
584 B
TypeScript
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>
|
|
);
|
|
}
|