diff --git a/src/web-check-live/components/Results/SocialTags.tsx b/src/web-check-live/components/Results/SocialTags.tsx index 32fd114..db238e6 100644 --- a/src/web-check-live/components/Results/SocialTags.tsx +++ b/src/web-check-live/components/Results/SocialTags.tsx @@ -17,6 +17,15 @@ const cardStyles = ` } `; +const OgBanner = ({ ogImage, ogUrl }: { ogImage: string; ogUrl?: string }): JSX.Element => { + const urlCover = ogImage.startsWith("/") && ogUrl ? `${ogUrl}${ogImage}` : ogImage; + return ( +
+ Banner +
+ ); +}; + const SocialTagsCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => { const tags = props.data; return ( @@ -36,7 +45,7 @@ const SocialTagsCard = (props: {data: any, title: string, actionButtons: any }): { tags.author && } { tags.publisher && } { tags.generator && } - { tags.ogImage &&
Banner
} + {tags.ogImage && } ); }