import AgentImage from '../components/AgentImage'; import { Agent } from './types'; export default function SharedAgentCard({ agent }: { agent: Agent }) { return (

{agent.name}

{agent.description}

{agent.shared_metadata && (
{agent.shared_metadata?.shared_by && (

by {agent.shared_metadata.shared_by}

)} {agent.shared_metadata?.shared_at && (

Shared on{' '} {new Date(agent.shared_metadata.shared_at).toLocaleString( 'en-US', { month: 'long', day: 'numeric', year: 'numeric', hour: '2-digit', minute: '2-digit', hour12: true, }, )}

)}
)} {agent.tool_details && agent.tool_details.length > 0 && (

Connected Tools

{agent.tool_details.map((tool, index) => ( {`${tool.name}{' '} {tool.name} ))}
)}
); }