feat: create trpc route to fetch download link (#7495)

* feat: create trpc route to fetch download link

Signed-off-by: Udit Takkar <[email protected]>

* fix: removing file, adding isdownloadable logix

Signed-off-by: Udit Takkar <[email protected]>

* chore

Signed-off-by: Udit Takkar <[email protected]>

* fix: type error

Signed-off-by: Udit Takkar <[email protected]>

* Some performance enhancements and better error logging

* Add error message here too

---------

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Udit TakkarandAlex van Andel authored and GitHub committed 2023-03-05 12:59:07 +00:00
1 parent cc1d606ba8
commit 2dddd4ce77
8 files changed
+204 -122

No files matched your search

@@ -1,6 +1,7 @@
import DOMPurify from "dompurify";
import { useSession } from "next-auth/react";
import React, { AriaRole, ComponentType, Fragment } from "react";
import type { AriaRole, ComponentType } from "react";
import React, { Fragment } from "react";
import { APP_NAME, CONSOLE_URL, SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";