import React, { FC } from 'react'
import { Select, Form } from 'antd'
import 'antd/dist/antd.css'
import { enum2Options } from 'antd-utils'
enum ESelectOptions {
option0 = 0,
optionA = "a",
optionTest = "test",
}
const options = enum2Options(ESelectOptions)
export const Enum2Options: FC = () => {
return (
<>
<Form>
<Form.Item name="name">
<Select>
{
(options || []).map((item: any) => (
<Select.Option key={item.value} value={item.value}>{item.label}</Select.Option>
))
}
</Select>
</Form.Item>
</Form>
</>
)
}