cal.pub0.org/packages/features/flags/hooks/index.ts

7 lines
179 B
TypeScript

import { trpc } from "@calcom/trpc/react";
export function useFlags() {
const query = trpc.viewer.features.map.useQuery(undefined, { initialData: {} });
return query.data;
}