import React from 'react'; import { Badge } from '@/components/ui/badge'; import { User } from 'lucide-react'; import type { ConnectedAppsSectionProps } from '../types'; import { AppCard } from './app-card'; export const ConnectedAppsSection: React.FC = ({ connectedApps, showAgentSelector, currentAgentId, agent, agentPipedreamProfiles = [], mode = 'full', onAppSelected, onConnectApp, onConfigureTools, onCategorySelect }) => { const getSectionTitle = () => { if (showAgentSelector && currentAgentId && agent) { return 'Available Connections'; } return mode === 'profile-only' ? 'Connected Accounts' : 'My Connections'; }; const getUsedProfilesCount = () => { return agentPipedreamProfiles.length; }; return (

{getSectionTitle()}

{connectedApps.length} connected {showAgentSelector && currentAgentId && getUsedProfilesCount() > 0 && ( {getUsedProfilesCount()} in use )}
{connectedApps.map((app) => ( ))}
); };