+ {isDraggingToken ? (() => {
+ const tokenMeta = PALETTE_TOKENS.find((t) => t.id === isDraggingToken);
+ const label = tokenMeta?.label ?? 'Field';
+ const color = tokenMeta?.color ?? '#2563eb';
+ const isCheckbox = isDraggingToken === 'checkbox';
+ return (
+
+ {!isCheckbox && label}
+
+ );
+ })() : null}
+
+```
+
+Note: `isDraggingToken` type changes from `boolean` to `string | null`. Update `useState