您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435
  1. import { memo } from 'react'
  2. import Card from './card'
  3. import InstallFromMarketplace from './install-from-marketplace'
  4. import { useGlobalPublicStore } from '@/context/global-public-context'
  5. import { useGetDataSourceListAuth } from '@/service/use-datasource'
  6. const DataSourcePage = () => {
  7. const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures)
  8. const { data } = useGetDataSourceListAuth()
  9. return (
  10. <div>
  11. <div className='space-y-2'>
  12. {
  13. data?.result.map(item => (
  14. <Card
  15. key={item.plugin_unique_identifier}
  16. item={item}
  17. />
  18. ))
  19. }
  20. </div>
  21. {
  22. enable_marketplace && (
  23. <InstallFromMarketplace
  24. providers={data?.result || []}
  25. searchText={''}
  26. />
  27. )
  28. }
  29. </div>
  30. )
  31. }
  32. export default memo(DataSourcePage)