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

650 B
Raw Blame
import { PopoverTrigger } from '@/components/ui/popover';
import { cn } from '@/lib/utils';

export function CellEditorTrigger({
  isEditing,
  children,
}: {
  isEditing: boolean;
  children: React.ReactNode;
}) {
  return (
    <PopoverTrigger asChild>
      <button
        className={cn(
          'w-full h-full flex items-center justify-between gap-2',
          'bg-gray-1 text-sm px-2',
          'focus:outline-hidden',
          {
            'border-2 border-accent-9': isEditing,
            'border-transparent bg-transparent!': !isEditing,
          },
        )}
      >
        {children}
      </button>
    </PopoverTrigger>
  );
}