export function slugify(text: string) { return text .toLowerCase() .trim() .replace(/\s+/g, "-") .replace(/[^a-z0-9-]/g, ""); }