11 lines
299 B
TypeScript
11 lines
299 B
TypeScript
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export function useFlags() {
|
|
const query = trpc.viewer.features.map.useQuery(undefined, {
|
|
initialData: process.env.NEXT_PUBLIC_IS_E2E
|
|
? { "managed-event-types": true, organizations: true, teams: true }
|
|
: {},
|
|
});
|
|
return query.data;
|
|
}
|