From 64adffaee742eb86e0740e3129fb8fb433e51595 Mon Sep 17 00:00:00 2001 From: ErkiKadhafi Date: Tue, 21 Jan 2025 13:22:37 +0700 Subject: [PATCH] add share agent button --- .../(main)/explore/_components/agent-card.tsx | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/app/(main)/explore/_components/agent-card.tsx b/src/app/(main)/explore/_components/agent-card.tsx index c4be8de..3a6162b 100644 --- a/src/app/(main)/explore/_components/agent-card.tsx +++ b/src/app/(main)/explore/_components/agent-card.tsx @@ -5,14 +5,15 @@ import Image from "next/image"; import { motion } from "framer-motion"; -import { Play } from "lucide-react"; +import { Play, Share, Share2 } from "lucide-react"; import { formatDate } from "@/lib/utils"; import { Tables } from "@/utils/supabase/database.types"; import { Badge } from "@/components/ui/badge"; -import { buttonVariants } from "@/components/ui/button"; +import { Button, buttonVariants } from "@/components/ui/button"; +import { toast } from "sonner"; const ease = [0.16, 1, 0.3, 1]; @@ -65,11 +66,22 @@ export default function AgentCard(props: AgentCardProps) {

{name}

{description}

-
+
+ Try it