"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var styled_components_1 = __importDefault(require("styled-components"));
var styleConstants_1 = require("./styleConstants");
var icons_1 = require("./icons");
var defaultProps = {
    theme: {
        linkColor: styleConstants_1.colors.accent.CIVIL_BLUE,
        linkColorHover: styleConstants_1.colors.accent.CIVIL_BLUE_FADED,
        sansSerifFont: styleConstants_1.fonts.SANS_SERIF,
    },
};
var StyledLink = styled_components_1.default.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  text-decoration: none;\n  font-family: ", ";\n  color: ", ";\n  &:hover {\n    color: ", ";\n  }\n  & path {\n    fill: ", ";\n  }\n  &:hover path {\n    fill: ", ";\n  }\n"], ["\n  text-decoration: none;\n  font-family: ", ";\n  color: ", ";\n  &:hover {\n    color: ", ";\n  }\n  & path {\n    fill: ", ";\n  }\n  &:hover path {\n    fill: ", ";\n  }\n"])), function (props) { return props.theme.sansSerifFont; }, function (props) { return props.theme.linkColor; }, function (props) { return props.theme.linkColorHover; }, function (props) { return props.theme.linkColor; }, function (props) { return props.theme.linkColorHover; });
StyledLink.defaultProps = defaultProps;
exports.ViewTransactionLink = function (props) {
    var baseUrl = props.network === "rinkeby" ? "https://rinkeby.etherscan.io/tx/" : "https://etherscan.io/tx/";
    return (React.createElement(StyledLink, { target: "_blank", href: "" + baseUrl + props.txHash },
        props.text || "view transaction",
        " ",
        React.createElement(icons_1.NorthEastArrow, null)));
};
var templateObject_1;
//# sourceMappingURL=ViewTransactionLink.js.map