(feat): add live messages
(feat): update licenses (feat): update livekit logging (feat): add basic grid layout (fix): remove deeplink log message
This commit is contained in:
parent
3768488e49
commit
8e294d230e
21 changed files with 510 additions and 51 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { LeaveIcon } from "@livekit/components-react";
|
||||
import { Button } from "@tensamin/ui";
|
||||
import { disconnect } from "../../store";
|
||||
import { disconnect, useCall } from "../../store";
|
||||
|
||||
export default function LeaveButton({
|
||||
className,
|
||||
|
|
@ -9,10 +9,13 @@ export default function LeaveButton({
|
|||
className?: string;
|
||||
iconSize?: number;
|
||||
}) {
|
||||
const state = useCall((store) => store.state);
|
||||
|
||||
return (
|
||||
<Button
|
||||
className={className}
|
||||
onClick={() => disconnect()}
|
||||
disabled={state === "closing" || state === "closed"}
|
||||
variant="destructive"
|
||||
>
|
||||
<LeaveIcon style={{ scale: (iconSize ? iconSize + 100 : 100) + "%" }} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue