Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at cope-settings-sync 21 lines 377 B view raw
1import {useCallback, useMemo, useState} from 'react' 2 3export function useInteractionState() { 4 const [state, setState] = useState(false) 5 6 const onIn = useCallback(() => { 7 setState(true) 8 }, []) 9 const onOut = useCallback(() => { 10 setState(false) 11 }, []) 12 13 return useMemo( 14 () => ({ 15 state, 16 onIn, 17 onOut, 18 }), 19 [state, onIn, onOut], 20 ) 21}