/** * The current hook is used to get the width of an element and update it when it changes. * It uses the ResizeObserver API to observe the element's width. * More info: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver */ export default function useElementWidth(element: HTMLElement | null): number | undefined;