-
Components
-
- Build beautiful emails with pre-built components that you can
- copy-and-paste into your app.
-
+export default async function ComponentsPage() {
+ return (
+ <>
+
-
-
-
- {componentsStructure.map((category, index) => {
- const slug = slugify(category.name);
- const Illustration = dynamic(
- () =>
- import(
- `@/illustrations/${category.name
- .toLowerCase()
- .replace(/ /g, '-')}`
- ),
- );
+
+
+
Components
+
+ Build beautiful emails with pre-built components that you can
+ copy-and-paste into your app.
+
+
+
+
+
+ {componentsStructure.map((category, index) => {
+ const slug = slugify(category.name);
+ const Illustration = dynamic(
+ () =>
+ import(
+ `@/illustrations/${category.name
+ .toLowerCase()
+ .replace(/ /g, '-')}`
+ ),
+ );
- return (
-
-
-
-
-
- {category.name}
-
-
- {category.components.length} component
- {category.components.length > 1 && 's'}
-
-
-
- );
- })}
-
-
- >
-);
-
-export default ComponentsPage;
+
+
+
+
+ {category.name}
+
+
+ {category.components.length} component
+ {category.components.length > 1 && 's'}
+
+
+
+ );
+ })}
+
+
+ >
+ );
+}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index f333c1dcec..943cd93eeb 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -82,7 +82,11 @@ export const viewport = {
themeColor: '#25AEBA',
};
-const RootLayout = ({ children }: { children: React.ReactNode }) => {
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
return (
{