more linting

This commit is contained in:
taskylizard
2023-11-19 14:27:14 +05:30
parent 84337b7b1d
commit ae179550bf
7 changed files with 38 additions and 41 deletions

View File

@@ -7,4 +7,21 @@ export const FeedbackSchema = z.object({
page: z.string().min(3).max(10),
});
export const feedbackOptions = [
{ label: "🐞 Bug", value: "bug" },
{
label: "💡 Suggestion",
value: "suggestion",
},
{ label: "📂 Other", value: "other" },
{
label: "❤️ Appreciation",
value: "appreciate",
},
];
export function getFeedbackOption(value: string): { label: string; value: string } {
return feedbackOptions.find((option) => option.value === value);
}
export type FeedbackType = z.infer<typeof FeedbackSchema>;