2024-09-08 06:25:29 +02:00
|
|
|
import React from "react";
|
2024-09-08 14:57:02 +02:00
|
|
|
export async function generateMetadata() {
|
2024-09-08 06:25:29 +02:00
|
|
|
return {
|
|
|
|
title: "Unsubscribe - SVR.JS",
|
|
|
|
description: "Unsubscribe from our newsletter.",
|
|
|
|
openGraph: {
|
|
|
|
title: "Unsubscribe - SVR.JS",
|
|
|
|
description: "Unsubscribe from our newsletter.",
|
2024-09-08 14:57:02 +02:00
|
|
|
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/unsubscribe?id=`, // We can't use searchParams in layouts
|
2024-09-08 06:25:29 +02:00
|
|
|
type: "website",
|
|
|
|
images: [
|
|
|
|
{
|
2024-09-08 13:16:43 +02:00
|
|
|
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/svrjs-cover.png`,
|
2024-09-08 06:25:29 +02:00
|
|
|
width: 800,
|
|
|
|
height: 600,
|
|
|
|
alt: "Unsubscribe - SVR.JS"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
twitter: {
|
|
|
|
card: "summary_large_image",
|
|
|
|
site: "@SVR_JS",
|
|
|
|
title: "Unsubscribe - SVR.JS",
|
|
|
|
description: "Unsubscribe from our newsletter.",
|
2024-09-08 13:16:43 +02:00
|
|
|
images: [
|
|
|
|
`${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/svrjs-cover.png`
|
|
|
|
],
|
2024-09-08 06:25:29 +02:00
|
|
|
creator: "@SVR_JS"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
const UnsubscribeLayout = ({ children }: { children: React.ReactNode }) => {
|
|
|
|
return <main>{children}</main>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default UnsubscribeLayout;
|