// Shared utilities for Author Works feature
// Keep UI-agnostic helpers here and re-export as needed.

/**
 * Convert internal work type slug to a human readable plural label.
 * Extend this mapping as new canonical work types are introduced.
 */
export function formatTypeName(type: string): string {
  switch (type) {
    case "poem":
      return "Poems";
    case "story":
      return "Short Stories";
    case "novel":
      return "Novels";
    case "play":
      return "Plays";
    case "essay":
      return "Essays";
    default:
      return "Other Works";
  }
}

// TODO(P2, small): Consider moving other duplicated helpers (e.g. lifespan / grouping)
// into this module or a higher-level author utils namespace once stabilized.
