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.

923 B
Raw Blame
import { type EmptyProps } from '@lobehub/ui';
import { Center, Empty } from '@lobehub/ui';
import { Boxes } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';

interface McpEmptyProps extends Omit<EmptyProps, 'icon'> {
  search?: boolean;
}

const McpEmpty = memo<McpEmptyProps>(({ search, ...rest }) => {
  const { t } = useTranslation('discover');

  return (
    <Center height="100%" style={{ minHeight: '50vh' }} width="100%">
      <Empty
        description={search ? t('mcpEmpty.search') : t('mcpEmpty.description')}
        icon={Boxes}
        title={search ? undefined : t('mcpEmpty.title')}
        type={search ? 'default' : 'page'}
        descriptionProps={{
          fontSize: 14,
        }}
        style={{
          maxWidth: 400,
        }}
        {...rest}
      />
    </Center>
  );
});

McpEmpty.displayName = 'McpEmpty';

export default McpEmpty;