mirror of
https://github.com/vercel/eve.git
synced 2026-09-20 05:35:39 +08:00
f44e16a3e5
Co-authored-by: Casey Gowrie <ctgowrie@gmail.com> Co-authored-by: Allen Zhou <46854522+allenzhou101@users.noreply.github.com> Co-authored-by: Rui Conti <ruiconti@gmail.com> Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: Timo Lins <1440854+timolins@users.noreply.github.com> Co-authored-by: Felix Arntz <3531426+felixarntz@users.noreply.github.com> Co-authored-by: Shar Dara <2982650+darafsheh@users.noreply.github.com> Co-authored-by: John Phamous <johnphammail@gmail.com>
29 lines
746 B
TypeScript
29 lines
746 B
TypeScript
"use client";
|
|
|
|
import { Analytics } from "@vercel/analytics/next";
|
|
import { GeistdocsProvider as PackageProvider } from "@vercel/geistdocs/layout";
|
|
import { SpeedInsights } from "@vercel/speed-insights/next";
|
|
import type { ComponentProps } from "react";
|
|
import { config } from "@/lib/geistdocs/config";
|
|
|
|
type GeistdocsProviderProps = Omit<ComponentProps<typeof PackageProvider>, "config"> & {
|
|
basePath: string | undefined;
|
|
className?: string;
|
|
lang?: string;
|
|
};
|
|
|
|
export const GeistdocsProvider = ({
|
|
basePath: _basePath,
|
|
className: _className,
|
|
lang,
|
|
...props
|
|
}: GeistdocsProviderProps) => {
|
|
return (
|
|
<>
|
|
<PackageProvider config={config} lang={lang} {...props} />
|
|
<Analytics />
|
|
<SpeedInsights />
|
|
</>
|
|
);
|
|
};
|