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;
};
import React from 'react';
import { parseDomain } from '@universal-login/commons';
import { classForComponent } from '../utils/classFor';
export var EnsName = function (_a) {
    var value = _a.value;
    var _b = __read(parseDomain(value), 2), name = _b[0], domain = _b[1];
    return React.createElement("p", { className: classForComponent('ens-name') },
        React.createElement("b", null, name),
        ".",
        domain);
};
//# sourceMappingURL=EnsName.js.map