-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
QuestionnairePage.tsx
27 lines (25 loc) · 1015 Bytes
/
QuestionnairePage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import AuthLayout from '../../components/layout/components/AuthLayout';
import AuthContainer from '../../components/layout/components/AuthContainer';
import { QuestionnaireForm } from './components/QuestionnaireForm';
import { useVercelIntegration } from '../../hooks';
import SetupLoader from './components/SetupLoader';
import { ENV, IS_DOCKER_HOSTED } from '@novu/shared-web';
import { HubspotSignupForm } from './components/HubspotSignupForm';
export default function QuestionnairePage() {
const { isLoading } = useVercelIntegration();
const isNovuProd = !IS_DOCKER_HOSTED && ENV === 'production';
return (
<AuthLayout>
{isLoading ? (
<SetupLoader title="Loading..." />
) : (
<AuthContainer
title="Customize your experience"
description={!isNovuProd ? 'Your answers can decrease the time to get started' : ''}
>
{!isNovuProd ? <QuestionnaireForm /> : <HubspotSignupForm />}
</AuthContainer>
)}
</AuthLayout>
);
}