'use client' import type { FC } from 'react' import React from 'react' import type { Plugin } from '../../../types' import Card from '../../../card' import Checkbox from '@/app/components/base/checkbox' import Badge, { BadgeState } from '@/app/components/base/badge/index' import useGetIcon from '../../base/use-get-icon' import { MARKETPLACE_API_PREFIX } from '@/config' type Props = { checked: boolean onCheckedChange: (plugin: Plugin) => void payload: Plugin isFromMarketPlace?: boolean } const LoadedItem: FC = ({ checked, onCheckedChange, payload, isFromMarketPlace, }) => { const { getIconUrl } = useGetIcon() return (
onCheckedChange(payload)} /> {payload.version} : null} />
) } export default React.memo(LoadedItem)