import { AnimatePresence, motion } from 'framer-motion' import { useEffect, useState } from 'react' import { DialogSection } from 'ui' import CountdownTimerRadial from '@/components/ui/CountdownTimer/CountdownTimerRadial' export const DiskMangementCoolDownSection = ({ visible }: { visible: boolean }) => { const [progress, setProgress] = useState(100) const [showCountdown, setShowCountdown] = useState(false) const [isJumping, setIsJumping] = useState(false) 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 ( {visible && (
{showCountdown && ( )}

For 4 hours you will not be able to change any disk attributes.

There is a cooldown period enforced for any disk attribute modifications

)}
) }