export interface PublishBatchSummary { id?: string; status?: string; } export const selectActivePublishBatch = (batches: T[]): T | undefined => batches.find(batch => batch.status === 'running' || batch.status === 'canceling');