import { apiGet } from '@/lib/http'
import type { AdminMessageDeliveryListItem, AdminPagination } from '@/types/admin'

export function fetchAdminMessageDeliveries(params?: Record<string, unknown>) {
  return apiGet<{ items: AdminMessageDeliveryListItem[]; pagination: AdminPagination }>(
    '/api/v1/admin/message-deliveries',
    params,
  )
}
