import { useState } from "react" ; import { FlectChimeClient } from "../chime/FlectChimeClient" ; export const useAmongUsServer = ( ) => { const [ chimeClient , setChimeClient ] = useState < FlectChimeClient | null > ( null ) ; const updateGameState = ( ev , data ) => { try { chimeClient ?. hmmClient ?. amongUsServer ?. updateGameState ( ev , data ) ; } catch ( exception ) { console . log ( `[useAmongUsServer][updateGameState] exception!!!!!` , exception ) ; } } ; return { updateGameState , setChimeClient } ; } ;