usxeditor
Version:
USX editor react component.
13 lines (12 loc) • 630 B
JavaScript
;
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"));
function Note(props) {
var raw = props.raw, caller = props.caller;
var c = String.fromCharCode('a'.charCodeAt(0) + caller);
return react_1.default.createElement("span", { style: { verticalAlign: 'text-top', color: 'lightblue', fontSize: '0.6em', fontWeight: 'bold' }, "aria-label": raw }, c);
}
exports.default = react_1.default.memo(Note);