import React from 'react';
import { useI18n } from '@smg-automotive/i18n-pkg';
import Link from '../../../link/index.js';
import Hide from '../../../hide/index.js';
import Badge from '../../../badge/index.js';

var NavigationLink = function (_a) {
    var link = _a.link, title = _a.title, translationKey = _a.translationKey, _b = _a.translationParameters, translationParameters = _b === void 0 ? {} : _b, isNew = _a.isNew, _c = _a.fontWeight, fontWeight = _c === void 0 ? 'regular' : _c, _d = _a.variant, variant = _d === void 0 ? 'navigationLink' : _d, _e = _a.color, color = _e === void 0 ? 'gray.900' : _e, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, hideTextBelow = _a.hideTextBelow, onClick = _a.onClick;
    var _f = useI18n(), t = _f.t, language = _f.language;
    return (React.createElement(Link, { href: link && link[language], variant: variant, fontWeight: fontWeight, color: color, leftIcon: leftIcon, rightIcon: rightIcon, onClick: onClick }, (translationKey || title) && (React.createElement(Hide, { below: hideTextBelow },
        translationKey ? t(translationKey, translationParameters) : title,
        isNew ? (React.createElement(Badge, { variant: "navigationLinkBadge", text: "New" })) : null))));
};

export { NavigationLink as default };
//# sourceMappingURL=NavigationLink.js.map
