Cohort selection.
This commit is contained in:
1 parent
05f9a67727
commit
bab4f8ebcc
32 files changed
+841
-655
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { Select, ListItem } 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 { formatMessage, labels } = useMessages();
|
||||
|
||||
return (
|
||||
<Select value={value} onChange={onChange}>
|
||||
<ListItem id="path">{formatMessage(labels.viewedPage)}</ListItem>
|
||||
<ListItem id="event">{formatMessage(labels.triggeredEvent)}</ListItem>
|
||||
</Select>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user