"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HistoryLink = void 0;
var react_1 = __importDefault(require("react"));
var helpers_1 = require("../../helpers");
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 = (0, helpers_1.getHistoryLinkCurve)(x, y, toX, toY);
    return (react_1.default.createElement("path", { d: lineData, stroke: color, strokeWidth: 2, fill: 'none', strokeDasharray: isDashed ? '3,3' : undefined }));
};
exports.HistoryLink = HistoryLink;
