AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { ApFlagId, feedbackUrl } from '@activepieces/shared';
import { t } from 'i18next';
import { MessageSquarePlusIcon, SearchXIcon } from 'lucide-react';
import { useEmbedding } from '@/components/providers/embed-provider';
import { Button } from '@/components/ui/button';
import { flagsHooks } from '@/hooks/flags-hooks';
const NoResultsFound = () => {
const { data: showCommunityLinks } = flagsHooks.useFlag<boolean>(
ApFlagId.SHOW_COMMUNITY,
);
const isEmbedding = useEmbedding().embedState.isEmbedded;
const showRequestPieceButton = showCommunityLinks && !isEmbedding;
return (
<div className="flex flex-col items-center justify-center gap-3 h-full px-6 text-center">
<div className="flex items-center justify-center size-12 rounded-full bg-gray-3">
<SearchXIcon className="size-6 text-gray-11" />
</div>
<div className="flex flex-col gap-1">
<div className="text-sm font-medium text-gray-12">
{t('No results found')}
</div>
<div className="text-xs text-gray-11">
{t('Try a different search term')}
</div>
</div>
{showRequestPieceButton && (
<Button
variant="outline"
size="sm"
className="mt-1"
onClick={() => {
window.open(`${feedbackUrl}`, '_blank', 'noopener noreferrer');
}}
>
<MessageSquarePlusIcon className="size-4 mr-2" />
{t('Request Piece')}
</Button>
)}
</div>
);
};
export { NoResultsFound };