"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const React = tslib_1.__importStar(require("react"));
const locationContext_1 = require("../../gravity-blocks/context/locationContext/index.js");
const RouterLink = ({ href, children }) => {
    const { Link } = React.useContext(locationContext_1.LocationContext);
    return Link ? (0, jsx_runtime_1.jsx)(Link, { href: href, children: children }) : (0, jsx_runtime_1.jsx)(React.Fragment, { children: children });
};
exports.default = RouterLink;
//# sourceMappingURL=RouterLink.js.map
