Updates one of our confusing ternaries to use `ts-pattern` for rendering
the conditional blocks making it easy to follow the logic occurring.
## Related Issue
N/A
## Changes Made
- Swapped ternary for `ts-pattern`
## Testing Performed
- Manually created a bunch of documents in configurations matching those
required to exhaust the `match` conditions.