feat: translate text from DuckDuckGo #918 (#1486)

### What problem does this PR solve?

feat: translate text from DuckDuckGo #918

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-12 15:22:36 +08:00
committed by GitHub
parent 013db9410f
commit 740714b79d
4 changed files with 33 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import TopNItem from '@/components/top-n-item';
import { useTranslate } from '@/hooks/commonHooks';
import { Form, Input } from 'antd';
import { Form, Select } from 'antd';
import { IOperatorForm } from '../interface';
const DuckDuckGoForm = ({ onValuesChange, form }: IOperatorForm) => {
@ -20,8 +20,14 @@ const DuckDuckGoForm = ({ onValuesChange, form }: IOperatorForm) => {
label={t('channel')}
name={'channel'}
tooltip={t('channelTip')}
initialValue={'text'}
>
<Input.TextArea rows={5} />
<Select
options={[
{ value: 'text', label: t('text') },
{ value: 'news', label: t('news') },
]}
></Select>
</Form.Item>
</Form>
);