Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | import Image from 'next/image'; |
| 2 | import Link from 'next/link'; |
| 3 | import { ArrowUpRight } from 'lucide-react'; |
| 4 | |
| 5 | import { AGENTS } from '@/lib/agent-setup-clients'; |
| 6 | |
| 7 | export function AgentSetupGrid() { |
| 8 | return ( |
| 9 | <section className="not-prose my-8"> |
| 10 | <h2 className="mb-4 text-xl font-medium tracking-[-0.01em] text-fd-foreground sm:text-2xl"> |
| 11 | Pick your agent |
| 12 | </h2> |
| 13 | <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3"> |
| 14 | {AGENTS.map(agent => ( |
| 15 | <Link |
| 16 | className="group relative rounded-[14px] border border-fd-border bg-fd-card p-4 no-underline shadow-[0_1px_0_rgba(15,15,15,0.04)] transition-[border-color,transform,box-shadow] hover:-translate-y-px hover:border-fd-foreground/20 hover:shadow-[0_8px_20px_-12px_rgba(15,15,15,0.22)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fd-ring" |
| 17 | href={agent.href} |
| 18 | key={agent.name} |
| 19 | > |
| 20 | <ArrowUpRight |
| 21 | aria-hidden="true" |
| 22 | className="absolute right-4 top-4 size-3.5 text-fd-foreground/40 transition-transform group-hover:-translate-y-px group-hover:translate-x-px" |
| 23 | /> |
| 24 | <div className="mb-2.5 flex items-center gap-2.5"> |
| 25 | <span className="flex size-7 items-center justify-center rounded-[7px] border border-fd-border bg-fd-background"> |
| 26 | <Image |
| 27 | alt="" |
| 28 | className={ |
| 29 | agent.name === 'Grok Build' ? 'size-4 object-contain dark:invert' : 'size-4 object-contain' |
| 30 | } |
| 31 | height={16} |
| 32 | src={agent.icon} |
| 33 | width={16} |
| 34 | /> |
| 35 | </span> |
| 36 | <h3 className="text-[14px] font-medium text-fd-foreground">{agent.name}</h3> |
| 37 | </div> |
| 38 | <p className="text-[12.5px] leading-[1.55] text-fd-foreground/65"> |
| 39 | {agent.description} |
| 40 | </p> |
| 41 | </Link> |
| 42 | ))} |
| 43 | </div> |
| 44 | </section> |
| 45 | ); |
| 46 | } |