import React, { useState } from "react"; const TroubleshootingGuide = ({ generatedDataLink, onDownload }) => { const [isExpanded, setIsExpanded] = useState(false); const [copySuccess, setCopySuccess] = useState(false); const handleCopyLink = async () => { try { await navigator.clipboard.writeText(generatedDataLink); setCopySuccess(true); setTimeout(() => setCopySuccess(false), 2000); } catch (err) { console.error("Failed to copy: ", err); } }; // Add keyframes for animations const keyframes = ` @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } `; return ( <>
{isExpanded && (
🛠️
Common Issues and Solutions
📱 Preview not working?
  • {" "} This is normal! Browser security prevents previewing some files
  • {" "} Your data has been generated successfully
  • {" "} Click the download button to get your file
💾 Download not working?
  • Check if your browser blocked popups
  • Try right-clicking the download button and select "Open in new tab"
  • Copy the link and paste it in a new browser tab
🔗 Direct download link:
{generatedDataLink}
Still having issues?
  • Try using a different browser (Chrome, Firefox, Safari)
  • Disable browser extensions temporarily
  • Check if your antivirus is blocking downloads
  • Contact support if problems persist
)}
); }; export default TroubleshootingGuide;