import { http } from 'msw'
import { jsonResponse } from '../helpers'

// Default `/api/detect/*` handlers — sync image detect.

export const detectHandlers = [
  http.post('/api/detect/image', () =>
    jsonResponse({
      detections: [
        {
          id: 'det-1',
          classNum: 0,
          label: 'class-0',
          confidence: 0.92,
          affiliation: 20,
          combatReadiness: 1,
          centerX: 0.5,
          centerY: 0.5,
          width: 0.1,
          height: 0.1,
        },
      ],
    }),
  ),
]
