mirror of
https://github.com/fmhy/edit.git
synced 2026-02-04 02:01:07 +11:00
more linting
This commit is contained in:
parent
84337b7b1d
commit
ae179550bf
7 changed files with 38 additions and 41 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue