♻️(frontend) introduce useRoomId hook

Manipulating the room's id from the react-query cache should be
encapsulated in a dedicated hook.
This commit is contained in:
lebaudantoine
2024-12-03 23:43:36 +01:00
committed by aleb_the_flash
parent 3be5a5afc6
commit d1e008a844

View File

@@ -0,0 +1,6 @@
import { useRoomData } from './useRoomData'
export const useRoomId = () => {
const apiRoomData = useRoomData()
return apiRoomData?.livekit?.room
}