jitsi-roomsv2/frontend/src/App.tsx
open-schnick d620dc7d5e
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
small changes
2023-04-10 23:37:30 +02:00

31 lines
913 B
TypeScript

import './App.css'
import Meeting from './components/meeting/Meeting'
import Sidebar from './components/sidebar/Sidebar'
import useBackendData from './hooks/useBackendData'
import useConferenceData from './hooks/useConferenceData'
import useLocalUser from './hooks/useLocalUser'
function App() {
const { userInfo, setUserInfo } = useLocalUser()
const { roomData, sendMessage } = useBackendData(userInfo)
const { conferenceData, setConferenceData } = useConferenceData(sendMessage, setUserInfo)
console.log('[App] [Room Data]', roomData)
if (roomData && userInfo) {
return (
<div className="App">
<Sidebar usersData={roomData} sendMessage={sendMessage} />
<Meeting
conferenceData={conferenceData}
setConferenceData={setConferenceData}
userInfo={userInfo}
/>
</div>
)
}
return <h2>🌀 Loading...</h2>
}
export default App