import { LogoIcon } from '@tamagui/logo'
import { Play } from '@tamagui/lucide-icons-2'
import { Button, isWeb, Square, useControllableState, Image, useEvent } from 'tamagui'
export function AnimationsDemo(props) {
const [positionI, setPositionI] = useControllableState({
strategy: 'most-recent-wins',
prop: props.position,
defaultProp: 0,
})
const position = positions[positionI]
const onPress = useEvent(() => {
setPositionI((x) => {
return (x + 1) % positions.length
})
})
return (
<>
{isWeb && }
>
)
}
export const positions = [
{
x: 0,
y: 0,
scale: 1,
rotate: '0deg',
},
{
x: -50,
y: -50,
scale: 0.5,
rotate: '-45deg',
hoverStyle: {
scale: 0.6,
},
pressStyle: {
scale: 0.4,
},
},
{
x: 50,
y: 50,
scale: 1,
rotate: '180deg',
hoverStyle: {
scale: 1.1,
},
pressStyle: {
scale: 0.9,
},
},
]