22 lines
454 B
TypeScript
22 lines
454 B
TypeScript
"use client";
|
|
|
|
import type { ReactNode } from "react";
|
|
|
|
import { PrivateZoomProvider } from "@/stores/private-zoom";
|
|
|
|
export interface PrivateZoomRouteProviderProps {
|
|
children: ReactNode;
|
|
characterId: string;
|
|
}
|
|
|
|
export function PrivateZoomRouteProvider({
|
|
children,
|
|
characterId,
|
|
}: PrivateZoomRouteProviderProps) {
|
|
return (
|
|
<PrivateZoomProvider key={characterId} characterId={characterId}>
|
|
{children}
|
|
</PrivateZoomProvider>
|
|
);
|
|
}
|