Complete the code to import the Metadata type from Next.js.
import type { [1] } from 'next';
The Metadata type is imported from 'next' to define page metadata in Next.js.
Complete the code to export a metadata object with a title.
export const metadata: Metadata = {
title: [1]
};The title value must be a string literal, so it needs quotes.
Fix the error in the metadata description property.
export const metadata: Metadata = {
description: [1]
};The description must be a string literal, so it requires quotes.
Fill both blanks to add openGraph title and description in metadata.
export const metadata: Metadata = {
openGraph: {
title: [1],
description: [2]
}
};Both title and description must be string literals with quotes.
Fill all three blanks to add twitter card metadata with card type, title, and description.
export const metadata: Metadata = {
twitter: {
card: [1],
title: [2],
description: [3]
}
};The twitter card type is usually 'summary_large_image' or 'summary'. Title and description must be strings.
