This codemod updates the usage of PiniaColada to ensure that the enabled and gcTime options are correctly placed under queryOptions. Previously, these options were directly passed as top-level properties, which is now deprecated. The codemod transforms these patterns into the new structure where enabled is nested under queryOptions.
Changes Applied:
Moves enabled under queryOptions
Moves gcTime under queryOptions if present
Ensures PiniaColada is always called with a valid configuration object