hello world, again

This commit is contained in:
taskylizard 2024-08-07 12:23:35 +00:00
commit f479740dd1
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
133 changed files with 32895 additions and 0 deletions

View file

@ -0,0 +1,29 @@
import z from 'zod'
export const FeedbackSchema = z.object({
message: z.string().min(5).max(1000),
type: z.enum(['bug', 'suggestion', 'appreciate', 'other']),
page: z.string().optional()
})
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>