// @flow import * as React from "react"; import cn from "classnames"; import { Card, Header, SocialNetworksList } from "../../components"; import ProfileImage from "./ProfileImage.react"; export type Props = {| +children?: React.Node, +className?: string, +name: string, +avatarURL?: string, +twitterURL?: string, +backgroundURL?: string, +bio?: string, |}; function Profile({ className, children, name, avatarURL = "", twitterURL = "", backgroundURL = "", bio, }: Props): React.Node { const classes = cn("card-profile", className); return ( {name}

{bio || children}

); } Profile.Image = ProfileImage; export default Profile;