e30e75b5d4
Changesets / Create Version PR (push) Has been cancelled
Deploy Shadcn Registry / Deploy Production (push) Has been cancelled
Template Metrics / LOC + Bundle Size (push) Has been cancelled
Code Quality / Oxlint + Oxfmt (push) Has been cancelled
Code Quality / Template Sync (push) Has been cancelled
Code Quality / Build Changed Packages (push) Has been cancelled
Code Quality / Test Changed Packages (push) Has been cancelled
Deploy Expo Example / Deploy Production (push) Has been cancelled
Deploy Ink Example / Deploy Production (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.12) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Has been cancelled
28 lines
833 B
TypeScript
28 lines
833 B
TypeScript
"use client";
|
|
|
|
import { RootProvider } from "fumadocs-ui/provider/next";
|
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
|
import type { ReactNode } from "react";
|
|
import { SearchDialog } from "@/components/shared/search-dialog";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
|
|
export function Provider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<NuqsAdapter>
|
|
<RootProvider search={{ SearchDialog }}>{children}</RootProvider>
|
|
|
|
<Toaster
|
|
position="top-center"
|
|
toastOptions={{
|
|
classNames: {
|
|
toast:
|
|
"!rounded-xl !border !bg-popover/95 !text-popover-foreground !shadow-lg !backdrop-blur-sm",
|
|
title: "!text-sm !font-medium",
|
|
description: "!text-sm !text-muted-foreground",
|
|
},
|
|
}}
|
|
/>
|
|
</NuqsAdapter>
|
|
);
|
|
}
|