UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

17 lines 700 B
import { __assign } from "tslib"; import * as React from 'react'; import { useUnmount } from '@fluentui/react-hooks'; import { css } from '../../Utilities'; import { notifyHostChanged } from './Layer.notification'; export var LayerHost = function (props) { var id = props.id, className = props.className; React.useEffect(function () { notifyHostChanged(id); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on first render }, []); useUnmount(function () { notifyHostChanged(id); }); return React.createElement("div", __assign({}, props, { className: css('ms-LayerHost', className) })); }; //# sourceMappingURL=LayerHost.js.map