0 && "border-border/50 bg-background/50",
)}
>
onChange(pressed ? node : node.node)}
aria-label="Negate group"
variant="outline"
size="xs"
className="h-7 min-w-10 px-2 text-[11px] sm:h-7"
>
Not
{onRemove ? (
) : null}
onChange({ type: "not", node: next })}
/>
);
}
const operator: BooleanOperator = node.type === "or" ? "or" : "and";
const children = flattenWhenChildren(node, operator);
const childKeyCounts = new Map