import { adminRequest } from "@/lib/admin-http";

import type { AdminTicketItemDetail } from "@/types/api/admin-tickets";

const A = `/admin`;

export async function getAdminTicketItem(ticketNo: string): Promise<AdminTicketItemDetail> {
  const encoded = encodeURIComponent(ticketNo);
  return adminRequest.get<AdminTicketItemDetail>(`${A}/tickets/${encoded}`);
}
