import React from "react"; import { motion } from "framer-motion"; import { Button } from "@/components/ui/button"; import { Share2 } from "lucide-react"; export default function SocialButtons() { const handleShare = async () => { const shareData = { title: "FancyText - Teile die App! 🔥", text: "Check out FancyText – coole Fonts für Instagram, TikTok & Co.!", url: window.location.href, }; if (navigator.share) { try { await navigator.share(shareData); } catch (err) { if (err.name !== "AbortError") console.error("Share failed:", err); } } else { try { await navigator.clipboard.writeText(`${shareData.text}\n${shareData.url}`); alert("Link kopiert! 📋"); } catch (err) { console.error("Copy failed:", err); } } }; return ( ); }