mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-18 10:29:08 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
|
@ -0,0 +1,30 @@
|
|||
import { CompletelyStylelessLink } from '@roleypoly/design-system/atoms/typography';
|
||||
import { UserAvatarGroup } from '@roleypoly/design-system/molecules/user-avatar-group';
|
||||
import * as React from 'react';
|
||||
import { GoGear, GoSignOut } from 'react-icons/go';
|
||||
import { DiscordUser } from '../../../../src/common/types';
|
||||
import { Base, NavAction } from './UserPopover.styled';
|
||||
|
||||
type UserPopoverProps = {
|
||||
user: DiscordUser;
|
||||
};
|
||||
|
||||
export const UserPopover = (props: UserPopoverProps) => (
|
||||
<Base>
|
||||
<UserAvatarGroup user={props.user} preventCollapse={true} />
|
||||
<NavAction>
|
||||
<a href="/user/settings">
|
||||
<CompletelyStylelessLink>
|
||||
Settings <GoGear />
|
||||
</CompletelyStylelessLink>
|
||||
</a>
|
||||
</NavAction>
|
||||
<NavAction>
|
||||
<a href="/machinery/logout">
|
||||
<CompletelyStylelessLink>
|
||||
Log Out <GoSignOut />
|
||||
</CompletelyStylelessLink>
|
||||
</a>
|
||||
</NavAction>
|
||||
</Base>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue