import React from "react"; import { useLoadGroupCall } from "../ConferenceCallManagerHooks"; import { ErrorView, FullScreenView } from "../FullScreenView"; export function GroupCallLoader({ client, roomId, viaServers, children }) { const { loading, error, groupCall } = useLoadGroupCall( client, roomId, viaServers ); if (loading) { return (

Loading room...

); } if (error) { return ; } return children(groupCall); }