Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

555 B
Raw Blame
import { useListCollectionItemsQuery } from "metabase/api";
import { ItemList } from "metabase/common/components/Pickers/EntityPicker/components";

export const TenantCollectionItemList = ({
  pathIndex,
}: {
  pathIndex: number;
}) => {
  const {
    data: collectionItems,
    error,
    isLoading,
  } = useListCollectionItemsQuery({
    id: "root",
    namespace: "shared-tenant-collection",
  });

  return (
    <ItemList
      items={collectionItems?.data}
      isLoading={isLoading}
      error={error}
      pathIndex={pathIndex}
    />
  );
};