1
0

social-media-buttons.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { getExplorerUrl } from "@/lib/agents"
  2. import { Button } from "./ui/button"
  3. import { Twitter, Facebook, Linkedin, Github } from "lucide-react"
  4. import { Agent } from "@/types/agent"
  5. interface SocialMediaProps {
  6. agent: Agent;
  7. }
  8. export function SocialMediaButtons({agent}: SocialMediaProps) {
  9. return (
  10. <div className="flex space-x-4">
  11. {agent.erc20 && (
  12. <Button
  13. variant="outline"
  14. className="border-blue-700 text-blue-700 hover:bg-blue-100 hover:text-blue-900"
  15. onClick={() =>
  16. window.open(getExplorerUrl(agent.erc20!), "_blank", "noopener,noreferrer")
  17. }
  18. >
  19. View on Explorer
  20. </Button>
  21. )}
  22. <Button
  23. variant="outline"
  24. size="icon"
  25. className="border-blue-400 text-blue-400 hover:bg-blue-100 hover:text-blue-600"
  26. >
  27. <Twitter className="h-5 w-5" />
  28. </Button>
  29. <Button
  30. variant="outline"
  31. size="icon"
  32. className="border-blue-600 text-blue-600 hover:bg-blue-100 hover:text-blue-800"
  33. >
  34. <Facebook className="h-5 w-5" />
  35. </Button>
  36. <Button
  37. variant="outline"
  38. size="icon"
  39. className="border-blue-700 text-blue-700 hover:bg-blue-100 hover:text-blue-900"
  40. >
  41. <Linkedin className="h-5 w-5" />
  42. </Button>
  43. <Button
  44. variant="outline"
  45. size="icon"
  46. className="border-gray-700 text-gray-700 hover:bg-gray-100 hover:text-gray-900"
  47. >
  48. <Github className="h-5 w-5" />
  49. </Button>
  50. </div>
  51. )
  52. }