import { Check, Copy, Download, Github, Link as LinkIcon } from "lucide-react" import Link from "next/link" import type React from "react" import { Button } from "@/components/ui/button" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" export type IconActionsProps = { imageUrl: string githubUrl: string iconName: string format: string variantKey: string copiedUrlKey: string | null copiedImageKey: string | null handleDownload: (event: React.MouseEvent, url: string, filename: string) => Promise handleCopyUrl: (url: string, variantKey: string, event?: React.MouseEvent) => void handleCopyImage: (imageUrl: string, format: string, variantKey: string, event?: React.MouseEvent) => Promise } export function IconActions({ imageUrl, githubUrl, iconName, format, variantKey, copiedUrlKey, copiedImageKey, handleDownload, handleCopyUrl, handleCopyImage, }: IconActionsProps) { const downloadFilename = `${iconName}.${format}` const isUrlCopied = copiedUrlKey === variantKey const isImageCopied = copiedImageKey === variantKey return (
{/* Download Button */}

Download {format.toUpperCase()}

{/* Copy Image Button */}

Copy image to clipboard

{/* Copy URL Button */}

Copy direct URL

{/* View on GitHub Button */}

View on GitHub

) }