import api from './api'

export const getAntrianOperasi = async (params: { type?: string; limit?: number; offset?: number; status?: string | undefined; search?: string | undefined; type_id?: string | undefined } = {}) => {
  const { type = 'all', limit = 10, offset = 0, status = undefined, search = undefined, type_id = undefined } = params
  const response = await api.get('/antrian-operasi', {
    params: { type, limit, offset, status, search, type_id }
  })
  return response.data
}
