export function useAssignService() {
  const { apiFetch } = useApi()

  return {
    getRoles(type: string) {
      return apiFetch(`/roles/${type}`)
    },

    saveRole(formData: Record<string, unknown>) {
      return apiFetch('/add-emp', { method: 'POST', body: formData })
    },
  }
}
