import type { PhotoModerationAction } from './photoModerationQueue';

export function countQueuedPhotoActions(queue: PhotoModerationAction[], slug?: string | null): number {
  if (!slug) {
    return queue.length;
  }
  return queue.filter((item) => item.eventSlug === slug).length;
}
