Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

748 B
Raw Blame
'use client';

import type { BuiltinPlaceholderProps } from '@lobechat/types';
import { ScrollShadow } from '@lobehub/ui';
import { memo } from 'react';

import { useIsMobile } from '@/hooks/useIsMobile';

import LoadingCard from '../Render/PageContent/Loading';

const CrawlMultiPages = memo<BuiltinPlaceholderProps<{ urls: string[] }>>(({ args }) => {
  const urls = args?.urls;

  const isMobile = useIsMobile();

  return (
    <ScrollShadow
      gap={isMobile ? 4 : 12}
      horizontal={!isMobile}
      orientation={'horizontal'}
      size={8}
    >
      {urls &&
        urls.length > 0 &&
        urls.map((url, index) => <LoadingCard key={`${index}_${url}`} url={url} />)}
    </ScrollShadow>
  );
});

export default CrawlMultiPages;