Spaces:
Sleeping
Sleeping
File size: 544 Bytes
1e8ff3b c921185 1e8ff3b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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 (
<div className="bg-white shadow sm:rounded-lg max-w-xl mx-auto">
<div className="px-4 py-5 sm:p-6">
<h3 className="text-base font-semibold leading-6 text-gray-900">
Joining...
</h3>
</div>
</div>
);
}
|