import { Suspense, useState } from "react"; import type { BlitzPage } from "blitz"; import { Routes } from "blitz"; import { useAtom } from "jotai"; import Layout from "../../core/layouts/layout"; import ConversationsList from "../components/conversations-list"; import NewMessageButton from "../components/new-message-button"; import NewMessageBottomSheet, { bottomSheetOpenAtom } from "../components/new-message-bottom-sheet"; import useRequireOnboarding from "../../core/hooks/use-require-onboarding"; const Messages: BlitzPage = () => { useRequireOnboarding(); const setIsOpen = useAtom(bottomSheetOpenAtom)[1]; return ( <>

Messages

setIsOpen(true)} /> ); }; Messages.getLayout = (page) => {page}; Messages.authenticate = { redirectTo: Routes.SignIn() }; export default Messages;