Files
NapCatQQ/.pnpm-store/v3/files/73/ae3c10ef1e19afc02f801aeeb2d4e2c7fdf35b306784da6c520357a61cc5388d36df32742ad4602a3bb877aed031f11d1d398d5fc2343a726b03a2b0880760
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

17 lines
402 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = getImplicitRoleForAnchor;
var _jsxAstUtils = require("jsx-ast-utils");
/**
* Returns the implicit role for an anchor tag.
*/
function getImplicitRoleForAnchor(attributes) {
if ((0, _jsxAstUtils.getProp)(attributes, 'href')) {
return 'link';
}
return '';
}
module.exports = exports.default;