mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
26 lines
855 B
TypeScript
26 lines
855 B
TypeScript
import { CompletelyStylelessLink } from '@roleypoly/design-system/atoms/typography';
|
|
import { UserAvatarGroup } from '@roleypoly/design-system/molecules/user-avatar-group';
|
|
import { DiscordUser } from '@roleypoly/types';
|
|
import * as React from 'react';
|
|
import { GoGear, GoSignOut } from 'react-icons/go';
|
|
import { Base, NavAction } from './UserPopover.styled';
|
|
|
|
type UserPopoverProps = {
|
|
user: DiscordUser;
|
|
};
|
|
|
|
export const UserPopover = (props: UserPopoverProps) => (
|
|
<Base>
|
|
<UserAvatarGroup user={props.user} preventCollapse={true} />
|
|
<NavAction>
|
|
<CompletelyStylelessLink to="/user/settings">
|
|
Settings <GoGear />
|
|
</CompletelyStylelessLink>
|
|
</NavAction>
|
|
<NavAction>
|
|
<CompletelyStylelessLink to="/machinery/logout">
|
|
Log Out <GoSignOut />
|
|
</CompletelyStylelessLink>
|
|
</NavAction>
|
|
</Base>
|
|
);
|