import { draftMode } from 'next/headers' export async function generateMetadata(props: any) { const params = await props.params await getMostRecentChangelog(params.slug, (await draftMode()).isEnabled) }