import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { LocationContext } from "../../gravity-blocks/context/locationContext/index.js";
const RouterLink = ({ href, children }) => {
    const { Link } = React.useContext(LocationContext);
    return Link ? _jsx(Link, { href: href, children: children }) : _jsx(React.Fragment, { children: children });
};
export default RouterLink;
//# sourceMappingURL=RouterLink.js.map
