import React from 'react' import { LogoIcon } from '@tamagui/logo' import { Button, Square, YStack, isWeb } from 'tamagui' import { useIsIntersecting } from './useOnIntersecting' export function AnimationsEnterDemo(props: any) { const ref = React.useRef(null) const [key, setKey] = React.useState(0) const hasIntersected = useIsIntersecting(ref, { once: true }) if (isWeb && !hasIntersected) { return } return ( <> {props.children ?? } ) }