Gate heatmaps report on UMAMI_SELF_RECORD.

This commit is contained in:
Mike Cao committed 2026-05-04 13:29:53 -07:00
1 parent a6b13b71db
commit 12c10c48cd
5 files changed
+24 -7

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ export type Config = {
linksUrl?: string;
pixelsUrl?: string;
privateMode: boolean;
selfRecordEnabled: boolean;
telemetryDisabled: boolean;
trackerScriptName?: string;
updatesDisabled: boolean;
+12 -6
View File
@@ -11,12 +11,14 @@ import {
Video,
} from '@/components/icons';
import { Funnel, Gauge, Lightning, Magnet, Money, Network, Path, Target } from '@/components/svg';
import { useConfig } from './useConfig';
import { useMessages } from './useMessages';
import { useNavigation } from './useNavigation';
export function useWebsiteNavItems(websiteId: string) {
const { t, labels } = useMessages();
const { pathname, renderUrl } = useNavigation();
const config = useConfig();
const renderPath = (path: string) =>
renderUrl(`/websites/${websiteId}${path}`, {
@@ -108,12 +110,16 @@ export function useWebsiteNavItems(websiteId: string) {
icon: <Video />,
path: renderPath('/replays'),
},
{
id: 'heatmaps',
label: t(labels.heatmaps),
icon: <Flame />,
path: renderPath('/heatmaps'),
},
...(config?.selfRecordEnabled
? [
{
id: 'heatmaps',
label: t(labels.heatmaps),
icon: <Flame />,
path: renderPath('/heatmaps'),
},
]
: []),
],
},
{