- Enhanced tests to ensure consistent messageId generation for legacy inbox rows lacking a messageId. - Updated test descriptions for better clarity regarding the new messageId handling. - Adjusted test expectations to align with the updated behavior of relaying legacy inbox rows with generated messageIds.
24 lines
662 B
TypeScript
24 lines
662 B
TypeScript
type DownloadEventParams = {
|
|
os: string;
|
|
arch: string;
|
|
version?: string | null;
|
|
source: string;
|
|
};
|
|
|
|
export const useAnalytics = () => {
|
|
const trackNavClick = (_target: string) => {};
|
|
const trackLanguageSwitch = (_from: string, _to: string) => {};
|
|
const trackThemeToggle = (_theme: "light" | "dark") => {};
|
|
const trackDownloadClick = (_params: DownloadEventParams) => {};
|
|
const trackSectionView = (_sectionId: string) => {};
|
|
const trackFaqExpand = (_faqId: string, _question: string) => {};
|
|
|
|
return {
|
|
trackNavClick,
|
|
trackLanguageSwitch,
|
|
trackThemeToggle,
|
|
trackDownloadClick,
|
|
trackSectionView,
|
|
trackFaqExpand,
|
|
};
|
|
};
|