For eg.
A post has tags -> Tag[]
enum Tag { "BUSINESS" | "DESIGN"}
What is the best way to use the prisma enum with zod.
Currently I get this error.
import { Tag } from "@prisma/client";
const [tags, setTags] = useState<Tag[]>([]);
{Object.values(Tag).map((tag) => {
return (...)
)}}
Type 'Tag[]' is not assignable to type '"BUSINESS" | "DESIGN"'.ts(2322)