#Best way to convert enum to other values

2 messages · Page 1 of 1 (latest)

clear forge
#

I have a enum (I think) that was generated by prisma from a database enum. This is a status enum that has PENDING, APPROVED, REJECTED. What's the best way to convert between the enum and like a friendly name "Pending", " Approved ", etc. And like let's say a list of styles.

stuck lily
#

probably just some kind of map