export function normalizeDigits(input: string | null | undefined): string {
  return String(input ?? '').replace(/\D+/g, '');
}

export function buildWaMeUrl(input: string): string {
  const digits = normalizeDigits(input);
  return `https://wa.me/${digits}`;
}
