// Pure helpers voor IDEA-codes. Geen DB-imports — daarom client-safe.
// De DB-mutating nextIdeaCode staat in lib/idea-code-server.ts.

const PAD = 3 // "IDEA-001". Bumps to 4 digits at counter 1000 organically.

export function formatIdeaCode(n: number): string {
  return `IDEA-${String(n).padStart(PAD, '0')}`
}
