import type { Handle } from '@remix-run/ui' import { css, on } from '@remix-run/ui' import { animateEntrance, animateExit, spring } from '@remix-run/ui/animation' export function ExitAnimation(handle: Handle) { let isVisible = true let shouldAnimate = false handle.queueTask(() => { shouldAnimate = true }) return () => (
{isVisible && (
)}
) }