(collection: ModCollection, id: string)
| 312 | } |
| 313 | |
| 314 | export function setActiveMod(collection: ModCollection, id: string): ModCollection { |
| 315 | if (!collection.items[id]) return collection; |
| 316 | return { ...collection, activeId: id }; |
| 317 | } |
| 318 | |
| 319 | // --------------------------------------------------------------------------- |
| 320 | // Backward compat wrappers |