forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInvitePopover.stories.js
More file actions
46 lines (42 loc) · 1.15 KB
/
InvitePopover.stories.js
File metadata and controls
46 lines (42 loc) · 1.15 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React from "react";
import { RoomLayout } from "../layout/RoomLayout";
import { InvitePopoverButton } from "./InvitePopover";
export default {
title: "Room/InvitePopover",
parameters: {
layout: "fullscreen"
}
};
const room = {
url: "hubs.link/oggNnrN",
code: "478816",
embed:
'<iframe src="https://demo.hubsfoundation.org/oggNnrN/handsome-famous-park?embed_token=5555555555555555555555555" style="width: 1024px; height: 768px;" allow="microphone; camera; vr; speaker;"></iframe>'
};
export const Base = () => (
<RoomLayout
toolbarCenter={
<InvitePopoverButton
url={room.url}
code={room.code}
embed={room.embed}
initiallyVisible
shareUrlHandler={() => console.log("room URL shared")}
/>
}
/>
);
export const InviteLink = () => (
<RoomLayout
toolbarCenter={
<InvitePopoverButton
url={room.url}
inviteRequired
initiallyVisible
inviteUrl="https://demo.hubsfoundation.org/123?hub_invite_id=123"
revokeInvite={() => console.log("revoke invite pressed")}
shareUrlHandler={() => console.log("room URL shared")}
/>
}
/>
);