links to unit pages from floors plan

This commit is contained in:
2025-06-02 17:15:46 +05:00
parent 9e74a6ef97
commit 967660caf3
11 changed files with 243 additions and 32 deletions
+7
View File
@@ -0,0 +1,7 @@
export default function complexNameToSlug(complexName: string) {
return complexName
.split(" ")
.slice(2)
.map((w) => w.toLowerCase())
.join("-");
}
+6
View File
@@ -0,0 +1,6 @@
export default function slugToComplexName(slug: string) {
return `Rove Home ${slug
.split("-")
.map((w) => w.charAt(0).toUpperCase() + w.slice(1))
.join(" ")}`;
}