mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			532 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			532 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import type { FC } from 'react' | ||
|  | import PluginItem from '../../plugin-item' | ||
|  | import type { PluginDetail } from '../../types' | ||
|  | 
 | ||
|  | type IPluginListProps = { | ||
|  |   pluginList: PluginDetail[] | ||
|  | } | ||
|  | 
 | ||
|  | const PluginList: FC<IPluginListProps> = ({ pluginList }) => { | ||
|  |   return ( | ||
|  |     <div className='pb-3'> | ||
|  |       <div className='grid grid-cols-2 gap-3'> | ||
|  |         {pluginList.map(plugin => ( | ||
|  |           <PluginItem | ||
|  |             key={plugin.plugin_id} | ||
|  |             plugin={plugin} | ||
|  |           /> | ||
|  |         ))} | ||
|  |       </div> | ||
|  |     </div> | ||
|  |   ) | ||
|  | } | ||
|  | export default PluginList |