/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-d4047d7
 * Released under the MIT license.
 */

import { useSelectableList } from '@react-aria/selection';
import { useListState } from 'react-stately';
export function useNotificationsList(props) {
    const { ref, children, items } = props;
    const state = useListState({
        selectionMode: 'none',
        children: children,
        items: items,
        suppressTextValueWarning: true,
    });
    const { listProps } = useSelectableList({
        ref,
        allowsTabNavigation: true,
        ...state,
    });
    return {
        listProps,
        state,
    };
}

        