import styled from "@emotion/styled"; import React from "react"; import { DARK_SECONDARY_TWO, LIGHT_ACTIVE, LIGHT_SECONDARY_FIVE, LIGHT_SECONDARY_THREE, } from "../../shared/colors"; import { CurrentUser_me } from "../graphql/generated/types"; import { StoreProps } from "../platform/SlideshowStore"; type Props = { user: CurrentUser_me; style?: any; } & StoreProps; enum STATUS { "ACTIVE" = "active", "AWAY" = "away", "DO_NOT_DISTURB" = "do_not_disturb", "INVISIBLE" = "invisible", "OFFLINE" = "offline", } const CURRENT_STATUS = STATUS.ACTIVE; export function ProfilePicture(props: Props) { return props.user.email ? ( {props.user.email[0].toUpperCase()} ) : ( // ); } const Blank = styled.div` min-width: 32px; min-height: 32px; background-color: ${DARK_SECONDARY_TWO}; `; const Image = styled.img` display: block; max-width: 32px; max-height: 32px; object-fit: cover; `;