import type { FC, PropsWithChildren, ReactNode } from 'react' import type { InputProps } from '@/app/components/base/input' import type { InputNumberProps } from '@/app/components/base/input-number' import { useTranslation } from 'react-i18next' import Input from '@/app/components/base/input' import { InputNumber } from '@/app/components/base/input-number' import Tooltip from '@/app/components/base/tooltip' const TextLabel: FC = (props) => { return } const FormField: FC> = (props) => { return (
{props.label} {props.children}
) } export const DelimiterInput: FC = (props) => { const { t } = useTranslation() return ( {t('stepTwo.separator', { ns: 'datasetCreation' })} {props.tooltip || t('stepTwo.separatorTip', { ns: 'datasetCreation' })} )} /> )} > ) } 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('stepTwo.maxLength', { ns: 'datasetCreation' })} )} > ) } export const OverlapInput: FC = (props) => { const { t } = useTranslation() return ( {t('stepTwo.overlap', { ns: 'datasetCreation' })} {t('stepTwo.overlapTip', { ns: 'datasetCreation' })} )} /> )} > ) }