I am using typescript and react hooks. I have the following function that i would like to convert to a ternary operator.
export const resultBoolean = (value: