UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

29 lines (26 loc) 1.14 kB
import React__default from 'react'; import styled from 'styled-components'; import Avatar from '../../../02-atoms/12-user/01-avatar/index.js'; const StyledUserAvatarTeaser = styled.div ` text-align: center; `; const StyledUserName = styled.div ` color: ${props => props.theme.avatar.teaser.name.color}; margin-bottom: 0.5rem; margin-top: 0.5rem; `; const StyledUserEmail = styled.div ` color: ${props => props.theme.avatar.teaser.email.color}; `; /** * The teaser for a user. It can be used to display a * small set of information about a user on the user detail page or * any other part where its relevant to show small snippets of user information. */ const AvatarTeaser = ({ picture = null, name, email }) => { return (React__default.createElement(StyledUserAvatarTeaser, null, React__default.createElement(Avatar, Object.assign({ title: name, alt: name }, (picture ? { src: picture } : null))), React__default.createElement(StyledUserName, null, name), React__default.createElement(StyledUserEmail, null, email))); }; export { AvatarTeaser, StyledUserEmail, StyledUserName };