Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
374 B · 21 lines
TypeScript
at main
12345678910111213141516171819202122import React from 'react'
export function useInteractionState() { const [state, setState] = React.useState(false)
const onIn = React.useCallback(() => { setState(true) }, []) const onOut = React.useCallback(() => { setState(false) }, [])
return React.useMemo( () => ({ state, onIn, onOut, }), [state, onIn, onOut], )}