Buckets:
| 'use client' | |
| import { useEffect } from 'react' | |
| import { useState } from 'react' | |
| export function Delay({ duration = 500, children }) { | |
| const [isVisible, setIsVisible] = useState(false) | |
| useEffect(() => { | |
| const timeout = setTimeout(() => setIsVisible(true), duration) | |
| return () => clearTimeout(timeout) | |
| }, [duration]) | |
| if (!isVisible) return null | |
| return <>{children}</> | |
| } | |
Xet Storage Details
- Size:
- 389 Bytes
- Xet hash:
- 859b387485272d3f94d56a1c4fa73b4b6b1756b63a6710ec45cf431e597590d0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.