"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useListNavigationAdapter = useListNavigationAdapter;
var _react = require("react");
var _utils = require("./utils");
function useListNavigationAdapter(getItem, getFocusableItems = _utils.getFocusableItemsDefaultImpl) {
  return (0, _react.useMemo)(() => ({
    getItem,
    getFocusableItems
  }), [getItem, getFocusableItems]);
}