import React from "react";
import { Column, Row } from "../../../atoms/grid";
import { Alert } from "../../../atoms/alert";

const AlertIcon = (props) => {
  return (
    <Alert {...props}>
      <Row>
        <Column textCenter pt1 md={1}>
          {props.icon}
        </Column>
        <Column md={11}>{props.text}</Column>
      </Row>
    </Alert>
  );
};

export default AlertIcon;
