c3fbf8224b
* Add Embed ModalBox for routing forms * Add duplicate form support * Fix duplication logic * Change to feathericons everywhere and other fixes * Dont allow routes for fallback route * Fix all TS issues * Fix tests * Support routing using query params * Support multiselect in router endpoint * Fix the issue where app goes in embed mode after viewing embed once * Add router url tests * Add Responses download and form toggling tests * Add required validation test * Change Icons everywhere * App typeform app * Improvements in cli * Add typeform how-to-use page * Add typeform how-to-use page and screenshots * Fix TS error * Add missing image * Update CliApp.tsx * Revert unexpected zapier change * Revert yarn.lock, not sure why it was modified Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
import { useSession } from "next-auth/react";
|
|
|
|
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export default function useApp(appId: string) {
|
|
const { status } = useSession();
|
|
|
|
return trpc.useQuery(["viewer.appById", { appId }], {
|
|
enabled: status === "authenticated",
|
|
});
|
|
}
|