diff --git a/apps/web/pages/enterprise/index.tsx b/apps/web/pages/enterprise/index.tsx new file mode 100644 index 0000000000..9854d5c6bc --- /dev/null +++ b/apps/web/pages/enterprise/index.tsx @@ -0,0 +1,74 @@ +import { getLayout } from "@calcom/features/MainLayout"; +import { ShellMain } from "@calcom/features/shell/Shell"; +import { UpgradeTip } from "@calcom/features/tips"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { Button, ButtonGroup } from "@calcom/ui"; +import { BarChart, CreditCard, Globe, Lock, Paintbrush, Users } from "@calcom/ui/components/icon"; + +import PageWrapper from "@components/PageWrapper"; + +export default function EnterprisePage() { + const { t } = useLocale(); + + const features = [ + { + icon: , + title: t("branded_subdomain"), + description: t("branded_subdomain_description"), + }, + { + icon: , + title: t("org_insights"), + description: t("org_insights_description"), + }, + { + icon: , + title: t("extensive_whitelabeling"), + description: t("extensive_whitelabeling_description"), + }, + { + icon: , + title: t("unlimited_teams"), + description: t("unlimited_teams_description"), + }, + { + icon: , + title: t("unified_billing"), + description: t("unified_billing_description"), + }, + { + icon: , + title: t("advanced_managed_events"), + description: t("advanced_managed_events_description"), + }, + ]; + return ( +
+ + + + + + +
+ }> + <>Create Org + + + + ); +} + +EnterprisePage.PageWrapper = PageWrapper; +EnterprisePage.getLayout = getLayout; diff --git a/apps/web/pages/insights/index.tsx b/apps/web/pages/insights/index.tsx index 8782acb0bb..1526bb6660 100644 --- a/apps/web/pages/insights/index.tsx +++ b/apps/web/pages/insights/index.tsx @@ -46,6 +46,7 @@ export default function InsightsPage() {
: null} subtitle={t("routing_forms_description")}> {isParentLoading}; diff --git a/packages/lib/hooks/useHasPaidPlan.ts b/packages/lib/hooks/useHasPaidPlan.ts index 9111f4a43b..7ad90ab099 100644 --- a/packages/lib/hooks/useHasPaidPlan.ts +++ b/packages/lib/hooks/useHasPaidPlan.ts @@ -32,4 +32,11 @@ export function useHasTeamPlan() { return { isLoading, hasTeamPlan: hasTeamPlan?.hasTeamPlan }; } +export function useHasEnterprisePlan() { + // TODO: figure out how to get "has Enterprise / has Org" from the backend + const { data: hasTeamPlan, isLoading } = trpc.viewer.teams.hasTeamPlan.useQuery(); + + return { isLoading, hasTeamPlan: hasTeamPlan?.hasTeamPlan }; +} + export default useHasPaidPlan;