let nextId = 0

/**
 * Generate readable unique ids for UI state.
 *
 * Persisted sessions may be restored across process restarts; include time to
 * reduce collision risk and keep debugging ergonomic.
 */
export function id(prefix: string): string {
  return `${prefix}_${Date.now()}_${nextId++}`
}
