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
20 lines
515 B
TypeScript
20 lines
515 B
TypeScript
import { useAtomValue } from 'jotai'
|
|
import React from 'react'
|
|
import ModelTable from '../ModelTable'
|
|
import { activeModelAtom } from '@helpers/atoms/Model.atom'
|
|
|
|
const ActiveModelTable: React.FC = () => {
|
|
const activeModel = useAtomValue(activeModelAtom)
|
|
|
|
if (!activeModel) return null
|
|
|
|
return (
|
|
<div className="pl-[63px] pr-[89px]">
|
|
<h3 className="mb-[13px] text-xl leading-[25px]">Active Model(s)</h3>
|
|
<ModelTable models={[activeModel]} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ActiveModelTable
|