import React from "react";
import { Link as DomLink } from "react-router-dom";
const ReactDomLink = (props) => {
    var _a;
    let children;
    if (typeof props.children === "string") {
        children = React.createElement("span", null, props.children);
    }
    else {
        children = props.children;
    }
    const cursorClassName = props.to
        ? "cursor-pointer"
        : "cursor-default";
    return (React.createElement(DomLink, { to: ((_a = props.to) === null || _a === void 0 ? void 0 : _a.toString()) || "", className: `${cursorClassName} ${props.className || ""}` }, children));
};
export default ReactDomLink;
//# sourceMappingURL=ReactDomLink.js.map