chore: add facades refactor: core module export refactor: inference plugin - deprecate function registering (#537) * refactor: revamp inference plugin as class - deprecate function registering * refactor: monitoring plugin - deprecate service registering (#538) refactor: revamp inference plugin as class - deprecate function registering chore: update import refactor: plugin revamp - model management chore: update build steps and remove experimental plugins refactor: remove pluggable electron chore: add sorting for conversations chore: build plugins for testing chore: consistent plugin directory name chore: docs chore: fix CI chore: update conversation prefix
26 lines
781 B
TypeScript
26 lines
781 B
TypeScript
import { Model } from '@janhq/core/lib/types'
|
|
import ConversationalCard from '../ConversationalCard'
|
|
import { ChatBubbleBottomCenterTextIcon } from '@heroicons/react/24/outline'
|
|
|
|
type Props = {
|
|
models: Model[]
|
|
}
|
|
|
|
const ConversationalList: React.FC<Props> = ({ models }) => (
|
|
<>
|
|
<div className="mb-2 mt-8 flex items-center gap-3">
|
|
<ChatBubbleBottomCenterTextIcon width={24} height={24} className="ml-6" />
|
|
<span className="font-semibold text-gray-900 dark:text-white">
|
|
Conversational
|
|
</span>
|
|
</div>
|
|
<div className="scroll mt-2 flex w-full gap-2 overflow-hidden overflow-x-scroll pl-6">
|
|
{models?.map((item) => (
|
|
<ConversationalCard key={item._id} model={item} />
|
|
))}
|
|
</div>
|
|
</>
|
|
)
|
|
|
|
export default ConversationalList
|