| 40 | const scrollToTop = () => window.scrollTo(0, 0); |
| 41 | const slug = str => str.replace(/\s+/g, '-').toLowerCase(); |
| 42 | const toPascal = str => |
| 43 | str |
| 44 | .split('-') |
| 45 | .map(w => w.charAt(0).toUpperCase() + w.slice(1)) |
| 46 | .join(''); |
| 47 | |
| 48 | // ─── Custom Hooks ──────────────────────────────────────────────────────────── |
| 49 | const useFavoritesSync = () => { |