import { PropertyInfoTooltip, Tooltip } from '@nx/graph/ui-tooltips';
import { CopyToClipboardButton } from '@nx/graph/ui-components';
import { TooltipTriggerText } from '../target-configuration-details/tooltip-trigger-text';
export function TargetExecutorTitle({
commands,
command,
script,
executor,
}: {
commands?: string[];
command?: string;
script?: string;
executor?: string;
}) {
if (commands && commands.length) {
return (
Commands
`"${c}"`).join(', ')}]`}
tooltipText="Copy Commands"
/>
);
}
if (command) {
return (
Command
);
}
if (script) {
return (
Script
);
}
return (
) as any}
>
Executor
);
}