"use client";

import type { ReactNode } from "react";

import { PrivateZoneProvider } from "@/stores/private-zone";
import { PrivateZonePostProvider } from "@/stores/private-zone-posts";

export interface PrivateZoneRouteProviderProps {
  children: ReactNode;
  characterId: string;
}

export function PrivateZoneRouteProvider({
  children,
  characterId,
}: PrivateZoneRouteProviderProps) {
  return (
    <PrivateZonePostProvider key={characterId} characterId={characterId}>
      <PrivateZoneProvider characterId={characterId}>
        {children}
      </PrivateZoneProvider>
    </PrivateZonePostProvider>
  );
}
