-
-
Save DanyF-github/2bb611c96632a5e0c58651b55538dfa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/pages/VideoSession.tsx | |
import React from 'react'; | |
import { useParams } from 'react-router-dom'; | |
import { Room } from '../components/Videocall'; | |
import { VideoSessionParams } from '../models'; | |
const VideoSession = () => { | |
// get the uuid from the url | |
const { uuid } = useParams<VideoSessionParams>(); | |
// render the Room component and pass the UUID property | |
return ( | |
<> | |
<p>Joining to session {uuid}</p> | |
<Room uuid={uuid} /> | |
</> | |
); | |
}; | |
export default VideoSession; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment