import { twMerge } from 'tailwind-merge'; import { NxCloudIcon } from '@nx/graph/legacy/icons'; export interface AtomizerTooltipProps { connectedToCloud: boolean; nonAtomizedTarget: string; onNxConnect?: () => void; } export function AtomizerTooltip(props: AtomizerTooltipProps) { return (
{'Nx '}
{' the potentially slow'}
{props.nonAtomizedTarget}
{'task into separate tasks for each file. Enable '}
{!props.connectedToCloud ? (
) : (
)}
{' to benefit from '}
{!props.connectedToCloud && (
<>
{', '}
>
)}
{' and '}
. Use
{props.nonAtomizedTarget}
when running without{' '}
{!props.connectedToCloud ? 'Nx Cloud' : 'Nx Agents'}.
{props.onNxConnect ? (
) : (
{'Run'}
nx connect
{'to connect to Nx Cloud'}
)}