### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
27 lines
756 B
TypeScript
27 lines
756 B
TypeScript
import TopNItem from '@/components/top-n-item';
|
|
import { useTranslate } from '@/hooks/common-hooks';
|
|
import { Form, Select } from 'antd';
|
|
import { LanguageOptions } from '../constant';
|
|
import { IOperatorForm } from '../interface';
|
|
|
|
const WikipediaForm = ({ onValuesChange, form }: IOperatorForm) => {
|
|
const { t } = useTranslate('common');
|
|
|
|
return (
|
|
<Form
|
|
name="basic"
|
|
labelCol={{ span: 6 }}
|
|
wrapperCol={{ span: 18 }}
|
|
autoComplete="off"
|
|
form={form}
|
|
onValuesChange={onValuesChange}
|
|
>
|
|
<TopNItem initialValue={10}></TopNItem>
|
|
<Form.Item label={t('language')} name={'language'}>
|
|
<Select options={LanguageOptions}></Select>
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
};
|
|
|
|
export default WikipediaForm;
|