mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-04-28 14:27:49 +08:00
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { Col, Divider, Row, Spin, Typography } from 'antd';
|
|
import CategoryPanel from './category-panel';
|
|
import ConfigurationForm from './configuration';
|
|
import {
|
|
useHandleChunkMethodChange,
|
|
useSelectKnowledgeDetailsLoading,
|
|
} from './hooks';
|
|
|
|
import styles from './index.less';
|
|
|
|
const { Title } = Typography;
|
|
|
|
const Configuration = () => {
|
|
const loading = useSelectKnowledgeDetailsLoading();
|
|
const { form, chunkMethod } = useHandleChunkMethodChange();
|
|
|
|
return (
|
|
<div className={styles.configurationWrapper}>
|
|
<Title level={5}>Configuration</Title>
|
|
<p>Update your knowledge base details especially parsing method here.</p>
|
|
<Divider></Divider>
|
|
<Spin spinning={loading}>
|
|
<Row gutter={32}>
|
|
<Col span={8}>
|
|
<ConfigurationForm form={form}></ConfigurationForm>
|
|
</Col>
|
|
<Col span={16}>
|
|
<CategoryPanel chunkMethod={chunkMethod}></CategoryPanel>
|
|
</Col>
|
|
</Row>
|
|
</Spin>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Configuration;
|