// @flow import * as React from "react"; import { List, Icon, Media, SocialNetworksList, Tooltip } from "../"; export type Props = {| +children?: React.Node, +className?: string, +name: string, +workTitle: string, +facebook?: string, +twitter?: string, +phone?: string, +skype?: string, |}; function MediaBodySocial({ className, children, name, workTitle, facebook = "", twitter = "", phone = "", skype = "", }: Props): React.Node { let fbIcon; let twitterIcon; let phoneIcon; let skypeIcon; if (facebook) { fbIcon = ( ); } if (twitter) { twitterIcon = ( ); } if (phone) { phoneIcon = ( ); } if (skype) { skypeIcon = ( ); } return (

{name}

{workTitle}

{fbIcon} {twitterIcon} {phoneIcon} {skypeIcon} {children}
); } export default MediaBodySocial;