// src/pages/collections/common/components/collection-image-fields/types.ts
var getCollectionGallery = (images) => (images ?? []).filter((image) => !image.type).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
var getCollectionIcon = (images) => (images ?? []).find((image) => image.type === "icon") ?? null;

export {
  getCollectionGallery,
  getCollectionIcon
};
