import { AnimatePresence, motion } from 'framer-motion' import { X } from 'lucide-react' import React, { useEffect, useState } from 'react' import { DialogSection } from 'ui' import CountdownTimerRadial from '../../ui/CountdownTimer/CountdownTimerRadial' export const DiskMangementCoolDownSection: React.FC = () => { const [progress, setProgress] = useState(100) const [showCountdown, setShowCountdown] = useState(false) const [isJumping, setIsJumping] = useState(false) const [isVisible, setIsVisible] = useState(true) useEffect(() => { const startCountdown = () => { setShowCountdown(true) setProgress(100) const interval = setInterval(() => { setProgress((prevProgress) => { if (prevProgress <= 0) { clearInterval(interval) setIsJumping(true) setTimeout(() => { setIsJumping(false) setProgress(100) startCountdown() // Restart the countdown }, 300) // Duration of the jump animation return 0 } return prevProgress - 1 }) }, 100) return () => clearInterval(interval) } const initialDelay = setTimeout(startCountdown, 1000) return () => clearTimeout(initialDelay) }, []) return ( {isVisible && (
{showCountdown && ( )}

For 6 hours you will not be able to make further changes.

Due to a cooldown period between disk changes.

)}
) }