Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
import { ListItem, Select } from '@umami/react-zen';
import { useMessages } from '@/components/hooks';
export interface ActionSelectProps {
value?: string;
onChange?: (value: string) => void;
}
export function ActionSelect({ value = 'path', onChange }: ActionSelectProps) {
const { t, labels } = useMessages();
return (
<Select value={value} onChange={val => onChange?.(val as string)}>
<ListItem id="path">{t(labels.viewedPage)}</ListItem>
<ListItem id="event">{t(labels.triggeredEvent)}</ListItem>
</Select>
);
}