import { Suspense } from "react"; import type { BlitzPage } from "blitz"; import AppLayout from "app/core/layouts/layout"; import MissingTwilioCredentials from "app/core/components/missing-twilio-credentials"; import useCurrentUser from "app/core/hooks/use-current-user"; import PageTitle from "app/core/components/page-title"; import Spinner from "app/core/components/spinner"; import InactiveSubscription from "app/core/components/inactive-subscription"; import PhoneCallsList from "../components/phone-calls-list"; const PhoneCalls: BlitzPage = () => { const { hasFilledTwilioCredentials, hasPhoneNumber, hasOngoingSubscription } = useCurrentUser(); if (!hasFilledTwilioCredentials || !hasPhoneNumber) { return ( <> ); } if (!hasOngoingSubscription) { return ( <>
}>
); } return ( <>
}> {/* TODO: skeleton phone calls list */}
); }; PhoneCalls.getLayout = (page) => {page}; export default PhoneCalls;