{"size": 810, "ext": "js", "max_stars_repo_path": "src/icons/triangle.js", "max_stars_repo_name": "John-Theo/akar-icons", "max_stars_repo_stars_event_min_datetime": "2020-11-26T01:40:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T20:02:45.000Z", "max_issues_repo_path": "src/icons/triangle.js", "max_issues_repo_name": "John-Theo/akar-icons", "max_issues_repo_issues_event_min_datetime": "2021-02-07T16:44:00.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T18:05:32.000Z", "max_forks_repo_path": "src/icons/triangle.js", "max_forks_repo_name": "John-Theo/akar-icons", "max_forks_repo_forks_event_min_datetime": "2021-02-11T04:31:23.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-19T22:47:16.000Z"}
{"max_stars_count": 379, "max_issues_count": 44, "max_forks_count": 15, "avg_line_length": 23.1428571429, "max_line_length": 164, "alphanum_fraction": 0.6209876543}
import React from 'react';
import PropTypes from 'prop-types';

const Triangle = props => {
  const { color, size, ...otherProps } = props;
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke={color}
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      {...otherProps}
    >
      <path d="M10.293 4.793c.78-1.277 2.634-1.277 3.414 0l7.433 12.164C21.955 18.29 20.996 20 19.434 20H4.566c-1.562 0-2.52-1.71-1.706-3.043l7.433-12.164z"></path>
    </svg>
  );
};

Triangle.propTypes = {
  color: PropTypes.string,
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Triangle.defaultProps = {
  color: 'currentColor',
  size: '24'
};

export default Triangle;
