import React, { PropTypes } from 'react';

const Line = ({
  x1,
  y1,
  x2,
  y2,
}) => (
  <line x1={x1} y1={y1} x2={x2} y2={y2} strokeWidth="0.5" stroke="black" />
);

Line.propTypes = {
  x1: PropTypes.number.isRequired,
  y1: PropTypes.number.isRequired,
  x2: PropTypes.number.isRequired,
  y2: PropTypes.number.isRequired,
};

export default Line;
