♻️(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-04 18:17:32 +01:00
parent eaf2c4d021
commit db8626adcc
@@ -0,0 +1,6 @@
import { useRoomData } from './useRoomData'
export const useRoomId = () => {
const apiRoomData = useRoomData()
return apiRoomData?.livekit?.room
}