@baken667/share-kit
Version:
A simple share utility kit with native and social media share options
16 lines (15 loc) • 400 B
TypeScript
type PlatformsType = "whatsapp" | "telegram" | "email" | "native";
type ShareOptions = {
url?: string;
title?: string;
desc?: string;
platform?: PlatformsType;
utmParams?: UtmParams;
};
type UtmParams = {
utm_source?: string;
utm_medium?: string;
utm_campaign?: string;
[key: string]: string | undefined;
};
export type { ShareOptions, UtmParams, PlatformsType };