import axiosInstance from '@/config/axios' import { unwrapApiPayload } from '@/helpers/listResponse' export interface PublicOrganizerSummary { id: string firstName: string lastName: string avatarUrl: string | null gender: 'male' | 'female' | 'other' | null bio?: string | null cityName?: string | null isVerified?: boolean memberSince?: string followersCount: number pastEventsCount: number totalGuestsCount?: number contactLinks?: { channel: string; label: string; url: string }[] } /** `GET /users/public/:id` — public host card on event detail / profiles. */ export async function fetchPublicOrganizer(organizerId: string): Promise { const response = await axiosInstance.get(`users/public/${organizerId}`) return unwrapApiPayload(response.data) }