import React from "react"; import { styled } from "styled-components"; import { Variant, variants } from "./types"; import { Image } from "../../../../components/Image"; import { RefreshIcon, WalletFilledIcon, WarningIcon } from "../../../../components/Svg"; import { Colors } from "../../../../theme/types"; const MenuIconWrapper = styled.div<{ borderColor: keyof Colors }>` align-items: center; background-color: ${({ theme }) => theme.colors.background}; border-color: ${({ theme, borderColor }) => theme.colors[borderColor]}; border-radius: 50%; border-style: solid; border-width: 2px; display: flex; height: 32px; justify-content: center; left: 0; position: absolute; top: 0; width: 32px; z-index: 102; `; const ProfileIcon = styled(Image)` left: 0; position: absolute; top: 0; z-index: 102; & > img { border-radius: 50%; } `; export const NoProfileMenuIcon: React.FC = () => ( ); export const PendingMenuIcon: React.FC = () => ( ); export const WarningMenuIcon: React.FC = () => ( ); export const DangerMenuIcon: React.FC = () => ( ); const MenuIcon: React.FC> = ({ avatarSrc, variant, className, }) => { if (variant === variants.DANGER) { return ; } if (variant === variants.WARNING) { return ; } if (variant === variants.PENDING) { return ; } if (!avatarSrc) { return ; } return ; }; export default MenuIcon;