import Head from 'next/head'; import Link from 'next/link'; import prisma from '../../lib/prisma'; import Shell from '../../components/Shell'; import { useState } from 'react'; import { useSession, getSession } from 'next-auth/client'; export default function Home(props) { const [session, loading] = useSession(); const [showAddModal, setShowAddModal] = useState(false); if (loading) { return
Loading...
; } else { if (!session) { window.location.href = "/"; } } function toggleAddModal() { setShowAddModal(!showAddModal); } function googleCalendarHandler() { fetch('/api/integrations/googlecalendar/add') .then((response) => response.json()) .then((data) => window.location.href = data.url); } return (Google Calendar
}{integration.type == 'google_calendar' && Calendar Integration}
Connected
} {!integration.key &&Not connected
}You currently do not have any integrations set up. Add your first integration to get started.
Link a new integration to your account.
For personal and business accounts