import type { TenantEvent } from '../api';

export function resolveEventSlugAfterUpdate(currentSlug: string, updated: TenantEvent): string {
  if (updated.slug && updated.slug !== currentSlug) {
    return updated.slug;
  }

  return currentSlug;
}
