more linting
This commit is contained in:
@@ -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>;
|
||||
|
Reference in New Issue
Block a user