import type { ReactNode } from "react";
import { AppShell } from "@/components/organisms";
import { AccountEventsListener } from "@/features/realtime/components/AccountEventsListener";
import { AccountRouteGuard } from "./AccountRouteGuard";

export default function AccountLayout({ children }: { children: ReactNode }) {
  return (
    <AppShell>
      <AccountRouteGuard />
      <AccountEventsListener />
      {children}
    </AppShell>
  );
}
