import type { Handle } from '@remix-run/ui' import { css, on } from '@remix-run/ui' import { animateEntrance, animateExit } from '@remix-run/ui/animation' export function MixinReclaim(handle: Handle) { let visible = true let interruptTimer: number | undefined function clearInterruptTimer() { if (interruptTimer === undefined) return window.clearTimeout(interruptTimer) interruptTimer = undefined } function scheduleInterrupt() { clearInterruptTimer() visible = false handle.update() interruptTimer = window.setTimeout(() => { visible = true handle.update() interruptTimer = undefined }, 140) } return () => (