import axiosInstance from '@/config/axios' import { unwrapApiPayload } from '@/helpers/listResponse' export interface OrganizerViewerState { isFollowing: boolean attendeeContactLinks: { channel: string; label: string; url: string; value: string }[] } export async function fetchOrganizerViewerState(organizerId: string): Promise { const response = await axiosInstance.get(`users/public/${organizerId}/viewer-state`) return unwrapApiPayload(response.data) }