Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

764 B
Raw Blame
'use client'
import type { FC } from 'react'
import type { Plugin, VersionProps } from '../../../types'
import * as React from 'react'
import Loading from '../../base/loading'
import LoadedItem from './loaded-item'

type Props = Readonly<{
  checked: boolean
  onCheckedChange: (plugin: Plugin) => void
  payload?: Plugin
  version: string
  versionInfo: VersionProps
}>

const MarketPlaceItem: FC<Props> = ({
  checked,
  onCheckedChange,
  payload,
  version,
  versionInfo,
}) => {
  if (!payload) return <Loading />
  return (
    <LoadedItem
      checked={checked}
      onCheckedChange={onCheckedChange}
      payload={{ ...payload, version }}
      isFromMarketPlace
      versionInfo={versionInfo}
    />
  )
}

export default React.memo(MarketPlaceItem)