mirror of
https://github.com/langgenius/dify.git
synced 2025-07-19 15:42:28 +00:00
24 lines
639 B
TypeScript
24 lines
639 B
TypeScript
import TemplateCard from './template-card'
|
|
import { usePipelineTemplateList } from '@/service/use-pipeline'
|
|
|
|
const CustomizedList = () => {
|
|
const { data: pipelineList, isLoading } = usePipelineTemplateList({ type: 'customized' })
|
|
const list = pipelineList?.pipeline_templates
|
|
|
|
if (isLoading || !list)
|
|
return null
|
|
|
|
return (
|
|
<div className='grid grow grid-cols-1 gap-3 overflow-y-auto px-16 pt-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4'>
|
|
{list.map((pipeline, index) => (
|
|
<TemplateCard
|
|
key={index}
|
|
pipeline={pipeline}
|
|
/>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CustomizedList
|