import React from "react";
import PropTypes from "prop-types";
import { withTheme } from "styled-components";
import { getObjectValue } from "../utils/util";
import IconWrapper from "../IconWrapper";

const ConversationIcon = props => {
  return (
    <IconWrapper {...props}>
      <svg
        width="24"
        height="24"
        viewBox="0 0 24 24"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M2 15.3892L20.5556 15.2503"
          stroke={getObjectValue(
            props.theme.colors,
            props.iconColor,
            props.theme.colors.grey.deep,
          )}
          strokeWidth="1.36719"
          strokeLinecap="square"
        />
        <path
          d="M2 10.3892L15.4524 10.2503"
          stroke={getObjectValue(
            props.theme.colors,
            props.iconColor,
            props.theme.colors.grey.deep,
          )}
          strokeWidth="1.36719"
          strokeLinecap="square"
        />
        <path
          d="M2 5.25001H7"
          stroke={getObjectValue(
            props.theme.colors,
            props.iconColor,
            props.theme.colors.grey.deep,
          )}
          strokeWidth="1.36719"
          strokeLinecap="square"
        />
      </svg>
    </IconWrapper>
  );
};

ConversationIcon.propTypes = {
  iconColor: PropTypes.string,
};

export default withTheme(ConversationIcon);
