"use client"; import { motion } from "framer-motion"; import { useRef } from "react"; import LordIcon from "./LordIcon"; export default function PasteCard({ paste, onDelete, pasteIconUrl, }: { paste: any; onDelete: (id: string) => void; pasteIconUrl: string; }) { const pasteIconRef = useRef(null); return ( pasteIconRef.current?.playFromBeginning()} onMouseLeave={() => pasteIconRef.current?.goToFirstFrame()} >
{paste.title || 'Untitled'}
{paste.content || 'No content'}
{new Date(paste.createdAt).toLocaleString()} {paste.views} views
View
); }