|
|
|
|
@ -2,12 +2,13 @@
|
|
|
|
|
import type { MarketplaceCollection } from '../types'
|
|
|
|
|
import CardWrapper from './card-wrapper'
|
|
|
|
|
import type { Plugin } from '@/app/components/plugins/types'
|
|
|
|
|
import { getLanguage } from '@/i18n/language'
|
|
|
|
|
|
|
|
|
|
type ListWithCollectionProps = {
|
|
|
|
|
marketplaceCollections: MarketplaceCollection[]
|
|
|
|
|
marketplaceCollectionPluginsMap: Record<string, Plugin[]>
|
|
|
|
|
showInstallButton?: boolean
|
|
|
|
|
locale?: string
|
|
|
|
|
locale: string
|
|
|
|
|
}
|
|
|
|
|
const ListWithCollection = ({
|
|
|
|
|
marketplaceCollections,
|
|
|
|
|
@ -23,8 +24,8 @@ const ListWithCollection = ({
|
|
|
|
|
key={collection.name}
|
|
|
|
|
className='py-3'
|
|
|
|
|
>
|
|
|
|
|
<div className='title-xl-semi-bold text-text-primary'>{collection.name}</div>
|
|
|
|
|
<div className='system-xs-regular text-text-tertiary'>{collection.description}</div>
|
|
|
|
|
<div className='title-xl-semi-bold text-text-primary'>{collection.label[getLanguage(locale)]}</div>
|
|
|
|
|
<div className='system-xs-regular text-text-tertiary'>{collection.description[getLanguage(locale)]}</div>
|
|
|
|
|
<div className='grid grid-cols-4 gap-3 mt-2'>
|
|
|
|
|
{
|
|
|
|
|
marketplaceCollectionPluginsMap[collection.name].map(plugin => (
|
|
|
|
|
|