import type { FC, PropsWithChildren } from 'react' import { SelectionMod } from '../base/icons/src/public/knowledge' import type { QA } from '@/models/datasets' export type ChunkLabelProps = { label: string characterCount: number } export const ChunkLabel: FC = (props) => { const { label, characterCount } = props return

{label} ยท {`${characterCount} characters`}

} export type ChunkContainerProps = ChunkLabelProps & PropsWithChildren export const ChunkContainer: FC = (props) => { const { label, characterCount, children } = props return
{children}
} export type QAPreviewProps = { qa: QA } export const QAPreview: FC = (props) => { const { qa } = props return

{qa.question}

{qa.answer}

}