export interface NameParts {
  gender?: string;
  firstName?: string;
  lastName?: string;
}

/**
 * Get full name from name parts
 * @param nameParts - Object containing optional gender, firstName, and lastName
 * @returns Full name string with parts separated by space
 */
export function getFullName(nameParts: NameParts): string {
  const parts: string[] = [];

  if (nameParts.gender) {
    parts.push(nameParts.gender);
  }

  if (nameParts.firstName) {
    parts.push(nameParts.firstName);
  }

  if (nameParts.lastName) {
    parts.push(nameParts.lastName);
  }

  return parts.join(' ').trim();
}
