2021-12-23 20:45:00 +00:00
|
|
|
import React from "react";
|
2022-01-08 00:20:55 +00:00
|
|
|
import { GridLayoutMenu } from "./room/GridLayoutMenu";
|
2021-12-23 22:40:23 +00:00
|
|
|
import {
|
|
|
|
Header,
|
|
|
|
HeaderLogo,
|
|
|
|
LeftNav,
|
|
|
|
RightNav,
|
|
|
|
RoomHeaderInfo,
|
|
|
|
} from "./Header";
|
|
|
|
import { UserMenu } from "./UserMenu";
|
2021-12-23 20:45:00 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: "Header",
|
|
|
|
component: Header,
|
2021-12-23 22:40:23 +00:00
|
|
|
parameters: {
|
|
|
|
layout: "fullscreen",
|
|
|
|
},
|
2021-12-23 20:45:00 +00:00
|
|
|
};
|
|
|
|
|
2021-12-23 22:40:23 +00:00
|
|
|
export const HomeAnonymous = () => (
|
2021-12-23 20:45:00 +00:00
|
|
|
<Header>
|
2021-12-23 22:40:23 +00:00
|
|
|
<LeftNav>
|
|
|
|
<HeaderLogo />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<UserMenu />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const HomeNamedGuest = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<HeaderLogo />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<UserMenu isAuthenticated isPasswordlessUser displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const HomeLoggedIn = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<HeaderLogo />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<UserMenu isAuthenticated displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const LobbyNamedGuest = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<RoomHeaderInfo roomName="Q4Roadmap" />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<UserMenu isAuthenticated isPasswordlessUser displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const LobbyLoggedIn = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<RoomHeaderInfo roomName="Q4Roadmap" />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<UserMenu isAuthenticated displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const InRoomNamedGuest = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<RoomHeaderInfo roomName="Q4Roadmap" />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<GridLayoutMenu layout="freedom" />
|
|
|
|
<UserMenu isAuthenticated isPasswordlessUser displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const InRoomLoggedIn = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<RoomHeaderInfo roomName="Q4Roadmap" />
|
|
|
|
</LeftNav>
|
|
|
|
<RightNav>
|
|
|
|
<GridLayoutMenu layout="freedom" />
|
|
|
|
<UserMenu isAuthenticated displayName="Yara" />
|
|
|
|
</RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
|
|
|
|
export const CreateAccount = () => (
|
|
|
|
<Header>
|
|
|
|
<LeftNav>
|
|
|
|
<HeaderLogo />
|
|
|
|
</LeftNav>
|
2021-12-23 20:45:00 +00:00
|
|
|
<RightNav></RightNav>
|
|
|
|
</Header>
|
|
|
|
);
|