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; return (

Account Settings

Manage your personal account and integrations.

{/* LinkedIn Integration */}

LinkedIn Integration

LinkedIn Account

Connect your LinkedIn profile to enable automated outreach campaigns.

{isConnected ? ( Connected ) : ( Not connected )}
{isConnected ? ( ) : ( )}
); } function AccountSettingsSkeleton() { return (
); } export default function AccountSettingsPage() { return ( }> ); }