mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
import { useApi } from './useApi';
|
|
|
|
export function useSessionData(websiteId: string, sessionId: string) {
|
|
const { get, useQuery } = useApi();
|
|
|
|
return useQuery({
|
|
queryKey: ['session:data', { websiteId, sessionId }],
|
|
queryFn: () => {
|
|
return get(`/websites/${websiteId}/sessions/${sessionId}/properties`, { websiteId });
|
|
},
|
|
});
|
|
}
|