UNPKG

@prezly/theme-kit-nextjs

Version:

Data layer and utility library for developing Prezly themes with NextJS

8 lines (7 loc) 471 B
import type { NewsroomLanguageSettings } from '@prezly/sdk'; import type { Locale } from '@prezly/theme-kit-intl'; import type { Metadata } from 'next'; type Alternates = NonNullable<Metadata['alternates']>; export type UrlGenerator = (localeCode: Locale.Code) => string | undefined; export declare function generateAlternateLanguageLinks(languages: Pick<NewsroomLanguageSettings, 'code' | 'is_default'>[], generateUrl: UrlGenerator): Alternates['languages']; export {};