diff --git a/src/app/(user)/user/profile/[id]/page.tsx b/src/app/(user)/user/profile/[id]/page.tsx index ce1866d..b6fcc07 100644 --- a/src/app/(user)/user/profile/[id]/page.tsx +++ b/src/app/(user)/user/profile/[id]/page.tsx @@ -388,6 +388,7 @@ export default function AgentProfileView() { showEditButton={false} messageHref={`/user/message?agentProfileId=${agentProfile.id}`} connectionStatus={connectionStatus} + isAvailable={agentProfile.isAvailable ?? true} onConnectClick={() => setShowConnectModal(true)} onUnlinkClick={handleUnlink} /> diff --git a/src/components/profile/ProfileCard.tsx b/src/components/profile/ProfileCard.tsx index e9842b6..55ccaf6 100644 --- a/src/components/profile/ProfileCard.tsx +++ b/src/components/profile/ProfileCard.tsx @@ -24,6 +24,7 @@ interface ProfileCardProps { requestsHref?: string; pendingRequestCount?: number; connectionStatus?: ConnectionStatus; + isAvailable?: boolean; onConnectClick?: () => void; // Callback when Connect button is clicked (for opening modal) onUnlinkClick?: () => void; // Callback when Unlink button is clicked } @@ -43,6 +44,7 @@ export function ProfileCard({ requestsHref, pendingRequestCount = 0, connectionStatus, + isAvailable = true, onConnectClick, onUnlinkClick, }: ProfileCardProps) { @@ -244,6 +246,7 @@ export function ProfileCard({ ) : (