Skip to content

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

1.2 KB
Raw Blame
import { ChatUIResponse } from '@activepieces/shared';
import React from 'react';

interface ChatIntroProps {
  chatUI: ChatUIResponse | null | undefined;
  botName: string;
}

export function ChatIntro({ chatUI, botName }: ChatIntroProps) {
  return (
    <div className="flex items-center justify-center py-8 px-4 font-semibold">
      <div className="flex flex-col items-center gap-1">
        <div className="flex items-center justify-center p-3 rounded-full">
          <img
            src={chatUI?.platformLogoUrl}
            alt="Bot Avatar"
            className="w-10 h-10"
          />
        </div>
        <div className="flex items-center gap-1 justify-center">
          <p className="animate-typing overflow-hidden whitespace-nowrap pr-1 hidden lg:block lg:text-xl text-gray-12 leading-8">
            Hi! I&apos;m {botName} 👋 How can I help you today?
          </p>
          <p className="animate-typing-sm overflow-hidden whitespace-nowrap pr-1 lg:hidden text-xl text-gray-12 leading-8">
            Hi! I&apos;m {botName} 👋
          </p>
          <span className="w-4 h-4 rounded-full bg-gray-12 animate-[fade_0.15s_ease-out_forwards_0.7s_reverse]" />
        </div>
      </div>
    </div>
  );
}