import React, { useState, useEffect } from 'react'; import { Backdrop, Box, Fade, Typography, Button, Checkbox, FormControlLabel, Stack } from '@mui/material'; import { welcomePageStyles } from '../theme'; import { APP_VERSION } from '../version'; export default function WelcomePage({ open, onClose }) { const [titleVisible, setTitleVisible] = useState(false); const [textVisible, setTextVisible] = useState(false); const [dontShowAgain, setDontShowAgain] = useState(false); useEffect(() => { if (open) { const titleTimer = setTimeout(() => setTitleVisible(true), 500); const textTimer = setTimeout(() => setTextVisible(true), 1500); return () => { clearTimeout(titleTimer); clearTimeout(textTimer); }; } else { setTitleVisible(false); setTextVisible(false); } }, [open]); if (!open) return null; return ( onClose(false)} sx={welcomePageStyles.backdrop} > e.stopPropagation()} > Welcome to Fragmenta ©2025-2026 Misagh Azimi Version {APP_VERSION} setDontShowAgain(e.target.checked)} size="small" /> } label={ Don't show this again } /> ); }