dify/web/app/components/plugins/marketplace/index.tsx

27 lines
859 B
TypeScript
Raw Normal View History

2024-10-12 18:02:24 +08:00
import { MarketplaceContextProvider } from './context'
import Description from './description'
import IntersectionLine from './intersection-line'
import SearchBox from './search-box'
import PluginTypeSwitch from './plugin-type-switch'
2024-10-28 11:50:26 +08:00
import ListWrapper from './list/list-wrapper'
2024-10-29 14:44:30 +08:00
import { getMarketplaceCollectionsAndPlugins } from './utils'
2024-10-28 11:50:26 +08:00
const Marketplace = async () => {
2024-10-29 14:44:30 +08:00
const { marketplaceCollections, marketplaceCollectionPluginsMap } = await getMarketplaceCollectionsAndPlugins()
2024-10-08 17:57:46 +08:00
return (
2024-10-12 18:02:24 +08:00
<MarketplaceContextProvider>
<Description />
<IntersectionLine />
<SearchBox />
<PluginTypeSwitch />
2024-10-28 11:50:26 +08:00
<ListWrapper
marketplaceCollections={marketplaceCollections}
marketplaceCollectionPluginsMap={marketplaceCollectionPluginsMap}
/>
2024-10-12 18:02:24 +08:00
</MarketplaceContextProvider>
2024-10-08 17:57:46 +08:00
)
}
2024-10-11 16:15:24 +08:00
export default Marketplace