mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-24 02:39:42 +02:00
- Extract MulticaIcon and ThemeProvider to packages/ui (remove duplication) - Extract shared CSS (scrollbar, shiki, entrance-spin) to packages/ui/styles/base.css - Add NavigationAdapter.openInNewTab/getShareableUrl for platform-agnostic navigation - Fix window.open() / window.location.href in shared views to use NavigationAdapter - Add resolve.dedupe for React in electron-vite config - Fix desktop tsconfig (noImplicitAny: true) - Use catalog: for all desktop dependencies - Add shadcn + tw-animate-css to desktop dependencies (fix phantom deps) - Add typecheck scripts to all shared packages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
532 B
TypeScript
24 lines
532 B
TypeScript
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
|
|
|
|
export { useTheme };
|
|
import { TooltipProvider } from "../ui/tooltip";
|
|
|
|
export function ThemeProvider({
|
|
children,
|
|
...props
|
|
}: React.ComponentProps<typeof NextThemesProvider>) {
|
|
return (
|
|
<NextThemesProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
{...props}
|
|
>
|
|
<TooltipProvider delay={500}>
|
|
{children}
|
|
</TooltipProvider>
|
|
</NextThemesProvider>
|
|
);
|
|
}
|