import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Attention from '../icons/components/Attention'
import Bylaw from '../icons/components/Bylaw'
import theme from '../theme'
import { font } from '../utils/styles'
import Info from './Info'
const Icon = styled.span`
margin-right: 10px;
`
const Title = styled.div`
color: ${theme.textSecondary};
margin-bottom: 2px;
display: flex;
align-items: center;
${font({ size: 'small' })};
`
const TitlelessBody = styled.div`
display: flex;
align-items: center;
`
const IconInfo = ({ children, icon, title, ...props }) => {
let titleElm = title
let bodyElm = (