+ {
+ shouldShowDataSourceTypeList && (
+
+ {t('datasetCreation.steps.one')}
+
+ )
+ }
+ {
+ shouldShowDataSourceTypeList && (
+
+
{
+ if (dataSourceTypeDisable)
+ return
+ changeType(DataSourceType.FILE)
+ hideFilePreview()
+ hideNotionPagePreview()
+ }}
>
- {t('datasetCreation.stepOne.dataSourceType.file')}
-
-
-
{
- if (dataSourceTypeDisable)
- return
- changeType(DataSourceType.NOTION)
- hideFilePreview()
- hideNotionPagePreview()
- }}
- >
-
-
- {t('datasetCreation.stepOne.dataSourceType.notion')}
-
-
-
changeType(DataSourceType.WEB)}
- >
-
-
- {t('datasetCreation.stepOne.dataSourceType.web')}
-
-
-
- )
- }
- {dataSourceType === DataSourceType.FILE && (
- <>
-
- {isShowVectorSpaceFull && (
-
-
-
- )}
-
- {/* */}
-
-
- >
- )}
- {dataSourceType === DataSourceType.NOTION && (
- <>
- {!hasConnection &&
}
- {hasConnection && (
- <>
-
- page.page_id)}
- onSelect={updateNotionPages}
- onPreview={updateCurrentPage}
- />
+
+
+ {t('datasetCreation.stepOne.dataSourceType.file')}
+
- {isShowVectorSpaceFull && (
-
-
-
- )}
-
- {/*
*/}
-
+
{
+ if (dataSourceTypeDisable)
+ return
+ changeType(DataSourceType.NOTION)
+ hideFilePreview()
+ hideNotionPagePreview()
+ }}
+ >
+
+
+ {t('datasetCreation.stepOne.dataSourceType.notion')}
+
- >
- )}
- >
- )}
- {dataSourceType === DataSourceType.WEB && (
- <>
-
- changeType(DataSourceType.WEB)}
+ >
+
+
+ {t('datasetCreation.stepOne.dataSourceType.web')}
+
+
+
+ )
+ }
+ {dataSourceType === DataSourceType.FILE && (
+ <>
+
-
-
+ {isShowVectorSpaceFull && (
+
+
+
+ )}
+
+ {/* */}
+
- )}
-
- {/* */}
-
-
- >
- )}
- {!datasetId && (
- <>
-
-
-
- {t('datasetCreation.stepOne.emptyDatasetCreation')}
-
- >
- )}
+ >
+ )}
+ {dataSourceType === DataSourceType.NOTION && (
+ <>
+ {!hasConnection &&
}
+ {hasConnection && (
+ <>
+
+ page.page_id)}
+ onSelect={updateNotionPages}
+ onPreview={updateCurrentPage}
+ />
+
+ {isShowVectorSpaceFull && (
+
+
+
+ )}
+
+ {/* */}
+
+
+ >
+ )}
+ >
+ )}
+ {dataSourceType === DataSourceType.WEB && (
+ <>
+
+
+
+ {isShowVectorSpaceFull && (
+
+
+
+ )}
+
+ {/* */}
+
+
+ >
+ )}
+ {!datasetId && (
+ <>
+
+
+
+ {t('datasetCreation.stepOne.emptyDatasetCreation')}
+
+ >
+ )}
+