import { createClient } from "@/lib/supabase/server"; import { Suspense } from "react"; import { Skeleton } from "@/components/ui/skeleton"; import { CheckCircle2, XCircle, Linkedin } from "lucide-react"; import { ConnectLinkedInButton } from "@/components/connect-linkedin-button"; import { DisconnectLinkedInButton } from "@/components/disconnect-linkedin-button"; async function AccountSettingsContent() { const supabase = await createClient(); const { data: userData } = await supabase.auth.getUser(); const userId = userData?.user?.id; if (!userId) return null; const { data: profile } = await supabase .from("profiles") .select("unipile_account_id, unipile_account_status") .eq("id", userId) .single(); const isConnected = !!profile?.unipile_account_id; const accountId = profile?.unipile_account_id as string | null; const status = profile?.unipile_account_status as string | null; return (
Manage your personal account and integrations.
LinkedIn Account
Connect your LinkedIn profile to enable automated outreach campaigns.