import { useDaily } from "@daily-co/daily-react"; import { useEffect } from "react"; export default function Join({ roomUrl, onJoin }) { const daily = useDaily(); useEffect(() => { daily.join({ url: roomUrl, startAudioOff: true, audioSource: false }); onJoin(); }); return (

Joining...

); }