UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

18 lines 967 B
define(["require", "exports", "tslib", "react", "@fluentui/react-hooks", "../../Utilities", "./Layer.notification"], function (require, exports, tslib_1, React, react_hooks_1, Utilities_1, Layer_notification_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LayerHost = void 0; var LayerHost = function (props) { var id = props.id, className = props.className; React.useEffect(function () { Layer_notification_1.notifyHostChanged(id); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on first render }, []); react_hooks_1.useUnmount(function () { Layer_notification_1.notifyHostChanged(id); }); return React.createElement("div", tslib_1.__assign({}, props, { className: Utilities_1.css('ms-LayerHost', className) })); }; exports.LayerHost = LayerHost; }); //# sourceMappingURL=LayerHost.js.map