import { apiFetch } from './http'

/**
 * Laravel `GET /api/v1/rfid/coming-soon` with JWT Bearer auth.
 * Adjust the path if your `routes/api.php` uses a different segment (e.g. under `administrator`).
 */
export type RfidComingSoonPayload = {
  title?: string
  subtitle?: string
  message?: string
  /** Extra keys from the API are ignored by the UI unless added explicitly. */
  [key: string]: unknown
}

export async function fetchRfidComingSoon(): Promise<RfidComingSoonPayload> {
  return apiFetch<RfidComingSoonPayload>('/api/v1/rfid/coming-soon')
}
