import React, { useState } from 'react'; import { PopUp } from 'app/shared/components/popUp/popUp'; import { Thumbnail } from 'app/shared/components/thumbnail/thumbnail'; import * as Text from 'app/shared/components/text/text'; import { Contact } from '../../store/contact.types'; export interface Props { contact: Contact } const ContactPanel = ({ contact }: Props) => { const [ isPopupVisible, setIsPopupVisible ] = useState(false); if (!contact) { return null; } return (