"use strict";
var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var commons_1 = require("@universal-login/commons");
var classFor_1 = require("../utils/classFor");
exports.EnsName = function (_a) {
    var value = _a.value;
    var _b = __read(commons_1.parseDomain(value), 2), name = _b[0], domain = _b[1];
    return react_1.default.createElement("p", { className: classFor_1.classForComponent('ens-name') },
        react_1.default.createElement("b", null, name),
        ".",
        domain);
};
//# sourceMappingURL=EnsName.js.map