import type { ReactNode } from "react";
import { AppShell } from "@/components/organisms";
import { ErrorBoundary, PageErrorFallback } from "@/components/molecules";
import { AccountEventsListener } from "@/features/realtime/components/AccountEventsListener";

export default function AccountLayout({ children }: { children: ReactNode }) {
  return (
    <AppShell>
      <AccountEventsListener />
      <ErrorBoundary fallback={<PageErrorFallback />}>{children}</ErrorBoundary>
    </AppShell>
  );
}
