| 123456789101112131415161718192021 |
- /** Section types in plain words. Unknown ones fall back to their code name. */
- export const typeNames: Record<string, string> = {
- header: 'Header',
- hero: 'Hero',
- trust_bar: 'Trust row',
- shop_by: 'Shop by collection',
- bento: 'Bento tiles',
- video: 'Video',
- product_grid: 'Products',
- featured_product: 'Featured product',
- about: 'About',
- testimonials: 'Reviews',
- faq: 'FAQ',
- newsletter: 'Newsletter',
- contact: 'Contact',
- footer: 'Footer',
- };
-
- export function sectionName(type: string): string {
- return typeNames[type] ?? type.replace(/_/g, ' ');
- }
|