mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
* feat(design-system): pre-port of roleypoly/ui * feat(design-system): port molecules * chore(design-system): prettier * feat(design-system): add intro card and MDX components * fix(common/utils): hack fixtures test data moved to design-system, update accordingly * chore: document protoReflection.ts * fix(design-system): some molecules missed the magic fuckery * ci: keep going on bazel test failures * fix(design-system): server masthead molecule missed the magic fuckery * chore: fix ts paths * chore: fix docker publisher * chore: fix docker publisher names * chore(discord-bot): fix publisher * chore(discord-bot): fix publisher
30 lines
912 B
TypeScript
30 lines
912 B
TypeScript
import * as React from 'react';
|
|
import { DiscordUser } from 'roleypoly/src/design-system/shared-types';
|
|
import { UserAvatarGroup } from 'roleypoly/src/design-system/molecules/user-avatar-group';
|
|
import { Base, NavAction } from './UserPopover.styled';
|
|
import { GoGear, GoSignOut } from 'react-icons/go';
|
|
import Link from 'next/link';
|
|
|
|
type UserPopoverProps = {
|
|
user: DiscordUser;
|
|
};
|
|
|
|
export const UserPopover = (props: UserPopoverProps) => (
|
|
<Base>
|
|
<UserAvatarGroup user={props.user} preventCollapse={true} />
|
|
<NavAction>
|
|
<Link href="/user/settings">
|
|
<>
|
|
Settings <GoGear />
|
|
</>
|
|
</Link>
|
|
</NavAction>
|
|
<NavAction>
|
|
<Link href="/auth/machinery/logout">
|
|
<>
|
|
Log Out <GoSignOut />
|
|
</>
|
|
</Link>
|
|
</NavAction>
|
|
</Base>
|
|
);
|