import { getGHLClientForUser } from '@/lib/ghl/helpers'; import { GHL } from '@/lib/ghl'; /** * Creates a GHL client instance for an authenticated user. * First checks for user-specific GHL credentials, then falls back * to global system settings. * * @param userId - The ID of the authenticated user * @returns A configured GHL client instance, or null if GHL is not configured */ export async function getGHLClient(userId: string): Promise { return getGHLClientForUser(userId); }