Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

679 B
Raw Blame
import { cn } from '@react/shared/utils/general';
import { FC } from 'react';
import { Skeleton } from '@react/features/ai-chat/components';

type TAgentNameProps = {
  name: string | undefined;
  isAgentLoading: boolean;
  isSettingsLoading: boolean;
};

export const AgentName: FC<TAgentNameProps> = ({ name, isAgentLoading, isSettingsLoading }) => {
  if (isAgentLoading) {
    return (
      <Skeleton className={cn('w-25 h-[18px] rounded', isSettingsLoading && 'rounded-b-none')} />
    );
  }

  return (
    <span className="text-lg font-medium text-[#111827] transition-opacity duration-300 ease-in-out leading-none">
      {name ?? 'Unknown Agent'}
    </span>
  );
};