🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { type EmptyProps } from '@lobehub/ui';
import { Center, Empty } from '@lobehub/ui';
import { Users } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
interface AgentSelectionEmptyProps extends Omit<EmptyProps, 'icon' | 'variant'> {
search?: boolean;
variant?: 'noAvailable' | 'noSelected' | 'empty';
}
const AgentSelectionEmpty = memo<AgentSelectionEmptyProps>(
({ search, variant = 'empty', ...rest }) => {
const { t } = useTranslation('home');
let description = t('agentSelection.empty');
if (search) {
description = t('agentSelection.search');
} else if (variant === 'noAvailable') {
description = t('agentSelection.noAvailable');
} else if (variant === 'noSelected') {
description = t('agentSelection.noSelected');
}
return (
<Center height="100%" style={{ minHeight: '30vh' }} width="100%">
<Empty
description={description}
icon={Users}
descriptionProps={{
fontSize: 14,
}}
style={{
maxWidth: 400,
}}
{...rest}
/>
</Center>
);
},
);
AgentSelectionEmpty.displayName = 'AgentSelectionEmpty';
export default AgentSelectionEmpty;