'use client';
import { useEffect } from 'react';
import { useAuth } from '../../providers/Auth/index.js';
/**
 * The Auth Provider wraps the entire app
 * but each page has specific permissions
 *
 * i.e. access control on documents/fields on a document
 */ export function HydrateAuthProvider({ permissions }) {
    const { setPermissions } = useAuth();
    useEffect(()=>{
        setPermissions(permissions);
    }, [
        permissions,
        setPermissions
    ]);
    return null;
}

//# sourceMappingURL=index.js.map