Problem: A long ternary is hard to read
Problem: A long ternary is hard to read.
Solution: Extract two functions.
(This is especially useful when there's a lot of JSX around a ternary)

Problem: A long ternary is hard to read.
Solution: Extract two functions.
(This is especially useful when there's a lot of JSX around a ternary)
