"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var react_router_dom_1 = require("react-router-dom");
exports.NavLink = function (props) {
    var LinkType;
    if (props.to) {
        LinkType = (React.createElement(react_router_dom_1.Link, { to: props.to, onClick: props.onClick }, props.children));
    }
    else if (props.href) {
        LinkType = (React.createElement("a", { href: props.href, target: props.target, onClick: props.onClick }, props.children));
    }
    return React.createElement(React.Fragment, null, LinkType);
};
//# sourceMappingURL=NavLink.js.map