import type { FC, PropsWithChildren, ReactNode } from 'react' import { useTranslation } from 'react-i18next' import type { InputProps } from '@/app/components/base/input' import Input from '@/app/components/base/input' import Tooltip from '@/app/components/base/tooltip' import type { InputNumberProps } from '@/app/components/base/input-number' import { InputNumber } from '@/app/components/base/input-number' const TextLabel: FC = (props) => { return } const FormField: FC> = (props) => { return
{props.label} {props.children}
} export const DelimiterInput: FC = (props) => { const { t } = useTranslation() return {t('datasetCreation.stepTwo.separator')} {props.tooltip || t('datasetCreation.stepTwo.separatorTip')} } /> }> } export const MaxLengthInput: FC = (props) => { const maxValue = Number.parseInt(globalThis.document?.body?.getAttribute('data-public-indexing-max-segmentation-tokens-length') || '4000', 10) const { t } = useTranslation() return {t('datasetCreation.stepTwo.maxLength')} }> } export const OverlapInput: FC = (props) => { const { t } = useTranslation() return {t('datasetCreation.stepTwo.overlap')} {t('datasetCreation.stepTwo.overlapTip')} } /> }> }