import React from 'react';
import { getHistoryLinkCurve } from '../../helpers';
export var HistoryLink = function (_a) {
    var x = _a.x, y = _a.y, toX = _a.toX, toY = _a.toY, color = _a.color, isDashed = _a.isDashed;
    var lineData = getHistoryLinkCurve(x, y, toX, toY);
    return (React.createElement("path", { d: lineData, stroke: color, strokeWidth: 2, fill: 'none', strokeDasharray: isDashed ? '3,3' : undefined }));
};
