'use client' import type { ReactNode } from 'react' import type { NewKnowledgeStartMode } from '../routes' import { cn } from '@langgenius/dify-ui/cn' import { RadioControl, RadioItem } from '@langgenius/dify-ui/radio-group' import { useId } from 'react' import { useTranslation } from 'react-i18next' export function StartMode({ children, description, disabled = false, icon, selected = false, title, value, }: { children?: ReactNode description: string disabled?: boolean icon: string selected?: boolean title: string value: NewKnowledgeStartMode }) { const { t } = useTranslation('dataset') const titleId = useId() const descriptionId = useId() const unavailableId = useId() return (
{title}