feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
|
|
@ -0,0 +1,48 @@
|
|||
import type { CSSProperties } from 'react'
|
||||
import type { VaultEntry } from '../types'
|
||||
import type { NoteReference } from '../utils/ai-context'
|
||||
import { InlineWikilinkInput } from './InlineWikilinkInput'
|
||||
|
||||
interface WikilinkChatInputProps {
|
||||
entries: VaultEntry[]
|
||||
value: string
|
||||
onChange: (value: string) => void
|
||||
onSend: (text: string, references: NoteReference[]) => void
|
||||
onUnsupportedPaste?: (message: string) => void
|
||||
disabled?: boolean
|
||||
placeholder?: string
|
||||
placeholderClassName?: string
|
||||
inputRef?: React.RefObject<HTMLDivElement | null>
|
||||
editorClassName?: string
|
||||
editorStyle?: CSSProperties
|
||||
}
|
||||
|
||||
export function WikilinkChatInput({
|
||||
entries,
|
||||
value,
|
||||
onChange,
|
||||
onSend,
|
||||
onUnsupportedPaste,
|
||||
disabled,
|
||||
placeholder,
|
||||
placeholderClassName,
|
||||
inputRef,
|
||||
editorClassName,
|
||||
editorStyle,
|
||||
}: WikilinkChatInputProps) {
|
||||
return (
|
||||
<InlineWikilinkInput
|
||||
entries={entries}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
onSubmit={onSend}
|
||||
onUnsupportedPaste={onUnsupportedPaste}
|
||||
disabled={disabled}
|
||||
placeholder={placeholder}
|
||||
placeholderClassName={placeholderClassName}
|
||||
inputRef={inputRef}
|
||||
editorClassName={editorClassName}
|
||||
editorStyle={editorStyle}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue