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

868 B
Raw Blame
import { isNil } from '@activepieces/core-utils';

import { ApAvatar } from '@/components/custom/ap-avatar';
import { useEmbedding } from '@/components/providers/embed-provider';

export const NoteFooter = ({ creatorId, isDragging }: NoteFooterProps) => {
  const {
    embedState: { isEmbedded },
  } = useEmbedding();
  if (isEmbedded) {
    return null;
  }
  return (
    <div className="flex items-center justify-between gap-2 cursor-grabbing overflow-hidden">
      <div className="grow">
        {!isNil(creatorId) && (
          <ApAvatar
            size="xsmall"
            id={creatorId}
            includeName={true}
            hideHover={isDragging}
          />
        )}
      </div>
    </div>
  );
};
NoteFooter.displayName = 'NoteFooter';

type NoteFooterProps = {
  id: string;
  isDragging?: boolean;
  creatorId: string | null | undefined;
};