UNPKG

@prezly/theme-kit-core

Version:

Data layer and utility library for developing Prezly themes with JavaScript

10 lines (9 loc) 502 B
import type { Newsroom } from '@prezly/sdk'; import { Locale } from '@prezly/theme-kit-intl'; type PrivacyPortalUrlOptions = { email?: string; action?: 'data-request' | 'subscribe' | 'unsubscribe'; }; export declare function generateUrl(newsroom: Pick<Newsroom, 'uuid'>, locale: Locale | Locale.AnyCode, options?: PrivacyPortalUrlOptions): string; export declare function getDataRequestUrl(newsroom: Pick<Newsroom, 'custom_data_request_link' | 'uuid'>, locale: Locale.Code): string; export {};