import React from 'react';

import { Text, Container, Glyph } from './styled';

type InfoPropTypes = {
  text: string;
};

const Info = ({ text }: InfoPropTypes) => (
  <Container>
    <Glyph name="info" />
    <Text>{text}</Text>
  </Container>
);

export default Info;
