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.

1014 B
Raw Blame
'use client';

import { Flexbox, Skeleton } from '@lobehub/ui';

/** Avoid importing the skeleton barrel from a component it re-exports. */
import ArticleSkeleton from '../Article';
import ConversationSkeletonContainer from './Container';

const ConversationListSkeleton = () => (
  <ConversationSkeletonContainer
    flex={1}
    gap={36}
    height={'100%'}
    padding={12}
    style={{ marginTop: 24 }}
  >
    <Flexbox gap={8} style={{ paddingLeft: '25%' }} width={'100%'}>
      <Skeleton.Text rows={3} style={{ alignItems: 'flex-end' }} />
    </Flexbox>
    {Array.from({ length: 2 }).map((_, index) => (
      <Flexbox gap={8} key={index} width={'100%'}>
        <ArticleSkeleton avatar={28} rows={0} />
        <Skeleton.Text />
        <Flexbox horizontal gap={8}>
          <Skeleton height={22} radius={4} width={48} />
          <Skeleton height={22} radius={4} width={48} />
        </Flexbox>
      </Flexbox>
    ))}
  </ConversationSkeletonContainer>
);

export default ConversationListSkeleton;