define(["require", "exports", "react", "@fluentui/react-hooks", "@fluentui/utilities", "./observeResize"], function (require, exports, React, react_hooks_1, utilities_1, observeResize_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useOverflow = void 0; /** * Track whether any items don't fit within their container, and move them to the overflow menu. * Items are moved into the overflow menu from back to front, excluding pinned items. * * The overflow menu button must be the last sibling of all of the items that can be put into the overflow, and it * must be hooked up to the `setMenuButtonRef` setter function that's returned by `useOverflow`: * ```ts * const overflow = useOverflow(...); * ``` * ```jsx * * // Index 0 * // Index 1 * ... *