import React from "react"; import { Button, Divider, Popover, Tooltip } from "antd"; export default function Link({ link, onDelete, onEdit }: { link: { title: string; value: string }; onEdit: () => void; onDelete: () => void; }) { const [copyed, setCopyed] = React.useState(false); const handleOpenUrl = () => { window.open(link.value, "_blank"); }; const handleCopy = () => { navigator.clipboard.writeText(link.value); setCopyed(true); setTimeout(() => { setCopyed(false); }, 1000); }; return ( {link.title || link.value}