import { useQuery } from '@tanstack/react-query';
import { useSeamClient } from '../../../lib/seam/use-seam-client.js';
export function useClientSession() {
    const { client } = useSeamClient();
    const { data, ...rest } = useQuery({
        enabled: client != null,
        queryKey: ['client_session', 'get'],
        queryFn: async () => {
            if (client == null)
                return null;
            return await client.clientSessions.get({});
        },
    });
    return { ...rest, clientSession: data };
}
//# sourceMappingURL=use-client-session.js.map