/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-af8d194 | Cube Dev Team */
import { useListState } from "react-stately";
import { useSelectableList } from "@react-aria/selection";

//#region src/components/overlays/NewNotifications/hooks/use-notifications-list.ts
function useNotificationsList(props) {
	const { ref, children, items } = props;
	const state = useListState({
		selectionMode: "none",
		children,
		items,
		suppressTextValueWarning: true
	});
	const { listProps } = useSelectableList({
		ref,
		allowsTabNavigation: true,
		...state
	});
	return {
		listProps,
		state
	};
}

//#endregion
export { useNotificationsList };
//# sourceMappingURL=use-notifications-list.js.map