"use client";

import type React from "react";
import { AuthProvider } from "@/hooks/auth-context";
import { GroupsProvider } from "@/hooks/groups-context";
import { NotificationsProvider } from "@/hooks/notifications-context";

type AppProvidersProps = {
    children: React.ReactNode;
};

export default function AppProviders({ children }: AppProvidersProps) {
    return (
        <NotificationsProvider>
            <AuthProvider>
                <GroupsProvider>{children}</GroupsProvider>
            </AuthProvider>
        </NotificationsProvider>
    );
}
