"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavigationButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const components_1 = require("../../../../../../components/index.js");
const blockIdContext_1 = require("../../../../../../context/blockIdContext/index.js");
const utils_1 = require("../../../../../../utils/index.js");
const b = (0, utils_1.block)('navigation-button');
const ANALYTICS_ID = 'navigation';
const NavigationButton = (props) => {
    const { url, target, className } = props;
    const classes = b(null, className);
    return (
    // TODO: fix any
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    (0, jsx_runtime_1.jsx)(blockIdContext_1.BlockIdContext.Provider, { value: ANALYTICS_ID, children: target ? ((0, jsx_runtime_1.jsx)(components_1.Button, { className: classes, ...props, url: url })) : ((0, jsx_runtime_1.jsx)(components_1.RouterLink, { href: url, children: (0, jsx_runtime_1.jsx)(components_1.Button, { ...props, className: classes, url: url }) })) }));
};
exports.NavigationButton = NavigationButton;
//# sourceMappingURL=NavigationButton.js.map
