Files
starface-outlook-sync-addin/node_modules/@fluentui/react/lib-amd/components/Text/Text.view.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

18 lines
1022 B
JavaScript

define(["require", "exports", "tslib", "@fluentui/foundation-legacy", "../../Utilities"], function (require, exports, tslib_1, foundation_legacy_1, Utilities_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextView = void 0;
var TextView = function (props) {
// eslint-disable-next-line eqeqeq
if (props.children == null) {
return null;
}
var block = props.block, className = props.className, _a = props.as, RootType = _a === void 0 ? 'span' : _a, variant = props.variant, nowrap = props.nowrap, rest = tslib_1.__rest(props, ["block", "className", "as", "variant", "nowrap"]);
var Slots = (0, foundation_legacy_1.getSlots)(props, {
root: RootType,
});
return (0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(rest, Utilities_1.htmlElementProperties)));
};
exports.TextView = TextView;
});
//# sourceMappingURL=Text.view.js.map