import React, { useEffect } from "react" import { FaUser, FaLock, FaGlobe, FaTags, FaCalendarAlt, FaQuestionCircle, FaComment, FaTimes, FaEdit } from "react-icons/fa" export default function DeckInfoPopUp({ deck, onClose }) { if (!deck) return null // Scroll blokkolás amikor a popup nyitva van useEffect(() => { // Scroll letiltása document.body.style.overflow = 'hidden' // Cleanup function - scroll visszaállítása amikor a komponens unmount-ol return () => { document.body.style.overflow = 'unset' } }, []) const deckTypes = { "Luck": { label: "Szerencse", color: "var(--color-luck)" }, "Question": { label: "Kérdés", color: "var(--color-question)" }, "Fun": { label: "Szórakozás", color: "var(--color-fun)" } } const currentDeckType = deckTypes[deck.type] || { label: deck.type, color: "var(--color-success)" } // Mock data - ezeket majd a backend adatokra cseréljük const mockData = { creator: "John Doe", privacy: deck.origin === "Vállalati" ? "Publikus" : "Privát", questionsCount: Math.floor(Math.random() * 50) + 10, answersCount: Math.floor(Math.random() * 200) + 50, ...deck } const formatDate = (dateString) => { const date = new Date(dateString) return date.toLocaleDateString('hu-HU', { year: 'numeric', month: 'long', day: 'numeric' }) } const handleOpenDeck = () => { alert("⚠️ A pakli megnyitás funkció még fejlesztés alatt áll!") } const handleEditDeck = () => { alert("⚠️ A pakli szerkesztés funkció még fejlesztés alatt áll!") } return (