Refactor relay form

This commit is contained in:
Jon Staab
2026-02-27 13:11:42 -08:00
parent 6017a65cf4
commit 5d102ad215
6 changed files with 145 additions and 170 deletions
+3
View File
@@ -0,0 +1,3 @@
export const RELAY_PLAN_IDS = ["free", "basic", "growth"] as const
export type RelayPlanId = (typeof RELAY_PLAN_IDS)[number]
+9
View File
@@ -0,0 +1,9 @@
export function slugify(value: string) {
return value
.toLowerCase()
.trim()
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-+|-+$/g, "")
}