| | |
| | | key={index} |
| | | className='py-2' |
| | | > |
| | | <div className='flex h-9 items-center text-sm font-medium text-text-primary'> |
| | | <div className='flex items-center h-9 text-sm font-medium text-gray-900'> |
| | | {locale === 'zh-Hans' ? form.label['zh-Hans'] : form.label['en-US']} |
| | | </div> |
| | | { |
| | | form.type === 'text-input' && ( |
| | | <input |
| | | value={value?.[form.variable] || ''} |
| | | className='block h-9 w-full appearance-none rounded-lg bg-components-input-bg-normal px-3 text-sm text-text-primary outline-none' |
| | | className='block px-3 w-full h-9 bg-gray-100 rounded-lg text-sm text-gray-900 outline-none appearance-none' |
| | | placeholder={form.placeholder} |
| | | onChange={e => handleFormChange(form.variable, e.target.value)} |
| | | /> |