forked from solana-foundation/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproviders.tsx
More file actions
21 lines (19 loc) · 695 Bytes
/
providers.tsx
File metadata and controls
21 lines (19 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use client";
import { ThemeProvider } from "next-themes";
import { Toaster } from "sonner";
import { PropsWithChildren } from "react";
import { ClusterProvider } from "./cluster-context";
import { WalletProvider } from "../lib/wallet/context";
import { SolanaClientProvider } from "../lib/solana-client-context";
export function Providers({ children }: PropsWithChildren) {
return (
<ThemeProvider attribute="class" defaultTheme="dark">
<ClusterProvider>
<SolanaClientProvider>
<WalletProvider>{children}</WalletProvider>
</SolanaClientProvider>
<Toaster position="bottom-right" richColors />
</ClusterProvider>
</ThemeProvider>
);
}