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.

1.3 KB
Raw Blame
'use client';

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

import AuthCard from '@/features/AuthCard';

const InteractionDetailsSkeleton = memo(() => (
  <Flexbox gap={16} width={'min(100%,400px)'}>
    <Flexbox horizontal align={'center'} justify={'center'} width={'100%'}>
      <Skeleton.Avatar shape={'square'} size={72} />
    </Flexbox>
    <AuthCard
      title={<Skeleton height={40} />}
      footer={
        <Flexbox gap={12} width={'100%'}>
          <Skeleton height={36} />
          <Skeleton height={36} />
        </Flexbox>
      }
      subtitle={
        <Flexbox gap={8} width={'100%'}>
          <Skeleton height={22} />
          <Skeleton height={22} width={'72%'} />
        </Flexbox>
      }
    >
      <Flexbox gap={12} width={'100%'}>
        <Skeleton height={22} width={'54%'} />
        <Flexbox gap={8} width={'100%'}>
          <Block padding={16} variant={'filled'}>
            <Skeleton height={36} />
          </Block>
          <Block padding={16} variant={'filled'}>
            <Skeleton width={'68%'} />
          </Block>
        </Flexbox>
      </Flexbox>
    </AuthCard>
  </Flexbox>
));

InteractionDetailsSkeleton.displayName = 'OAuthInteractionDetailsSkeleton';

export default InteractionDetailsSkeleton;