import type { FormItem } from '@/components/search-form/types'
import { DEVICE_CATEGORY_OPTIONS } from '@/api/ops/room-device'

export const searchFormConfig: FormItem[] = [
  {
    field: 'keyword',
    label: '关键词',
    type: 'input',
    placeholder: '请输入服务名称',
    span: 6,
  },
  {
    field: 'enabled',
    label: '启用状态',
    type: 'select',
    placeholder: '请选择启用状态',
    options: [
      { label: '已启用', value: true },
      { label: '已禁用', value: false },
    ],
    span: 6,
  },
  {
    field: 'device_category',
    label: '设备分类',
    type: 'select',
    placeholder: '请选择设备分类',
    options: DEVICE_CATEGORY_OPTIONS,
    span: 6,
  },
]
