Firebase snapshot from import module

Not sure if that subject even makes sense. So I’ve moved all my Firebase methods into a TypeScript file /src/hooks/firebase.ts based on a few examples I’ve seen from @aaronksaunders.

Now the rest of my code is still Vue 2 looking even though I’m riding on Vue 3 (not using the composition API as the code is more complex that way). What I am looking to do is update some parts of the UI when a Firebase snapshot live updates inside the method getDeviceInfo which is inside the firebase.ts file. Is that even possible?

import useFirebase from '../hooks/firebase';
const {getDeviceInfo} = useFirebase();