File size: 651 Bytes
1e8ff3b
 
 
 
 
 
 
c921185
1e8ff3b
 
 
 
 
f66623b
 
 
 
 
 
 
1e8ff3b
f66623b
1e8ff3b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 (
    <main className="min-h-screen flex items-center justify-center bg-zinc-200">
      <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>
    </main>
  );
}