UserInfoBlock.js 402 B

1234567891011121314151617
  1. import styled from "styled-components";
  2. const UserInfoBlockStyled = styled.div`
  3. display: flex;
  4. justify-content: center;
  5. align-items: center;
  6. margin: 0 40px;
  7. flex-direction: column;
  8. `
  9. const UserInfoBlock = ({count, description}) => {
  10. return (<UserInfoBlockStyled>
  11. <p>{count ? count : 0}</p>
  12. <p>{description}</p>
  13. </UserInfoBlockStyled>)
  14. }
  15. export default UserInfoBlock;