11 lines
249 B
TypeScript
11 lines
249 B
TypeScript
import { api } from '@/trpc/client';
|
|
|
|
export function useEventNames(
|
|
params: Parameters<typeof api.chart.events.useQuery>[0]
|
|
) {
|
|
const query = api.chart.events.useQuery(params, {
|
|
staleTime: 1000 * 60 * 10,
|
|
});
|
|
return query.data ?? [];
|
|
}
|