svrjs-nextjs-website/app/(root)/unsubscribe/layout.tsx

38 lines
1.1 KiB
TypeScript

import React from "react";
export async function generateMetadata({
searchParams
}: {
searchParams: { id: string } | undefined;
}) {
return {
title: "Unsubscribe - SVR.JS",
description: "Unsubscribe from our newsletter.",
openGraph: {
title: "Unsubscribe - SVR.JS",
description: "Unsubscribe from our newsletter.",
url: `https://svrjs.org/unsubscribe/?id=${encodeURIComponent(searchParams ? searchParams.id : "")}`,
type: "website",
images: [
{
url: "https://svrjs.vercel.app/metadata/svrjs-cover.png",
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.",
images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"],
creator: "@SVR_JS"
}
};
}
const UnsubscribeLayout = ({ children }: { children: React.ReactNode }) => {
return <main>{children}</main>;
};
export default UnsubscribeLayout;