import type { FormItem } from '@/components/search-form/types'
import { SECURITY_TYPE_OPTIONS } from '@/api/ops/security'

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: 'type',
    label: '设备类型',
    type: 'select',
    placeholder: '请选择设备类型',
    options: SECURITY_TYPE_OPTIONS,
    span: 6,
  },
]
