fix embed missing thumbnail
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 55s

Took 4 minutes
This commit is contained in:
Braydon 2024-10-06 18:38:21 -04:00
parent cf6447e4c4
commit 2b19fdf7bc

View File

@ -13,11 +13,6 @@ type EmbedProps = {
* The description of the embed.
*/
description: string;
/**
* The optional thumbnail image of the embed.
*/
thumbnail?: string;
};
/**
@ -26,24 +21,12 @@ type EmbedProps = {
* @param props the embed props
* @returns the embed jsx
*/
const Embed = ({
title,
description,
thumbnail = "",
}: EmbedProps): Metadata => {
const Embed = ({ title, description }: EmbedProps): Metadata => {
return {
title: title,
openGraph: {
title: `${title}`,
description: description,
images: [
{
url: thumbnail,
},
],
},
twitter: {
card: "summary",
},
};
};