import { Suspense } from "react"
import { Link, BlitzPage, useMutation, Routes } from "blitz"
import BaseLayout from "../core/layouts/base-layout"
import logout from "../auth/mutations/logout"
import useCurrentCustomer from "../core/hooks/use-current-customer"
/*
* This file is just for a pleasant getting started page for your new app.
* You can delete everything in here and start from scratch if you like.
*/
const UserInfo = () => {
const { customer } = useCurrentCustomer()
const [logoutMutation] = useMutation(logout)
if (customer) {
return (
<>
User id: {customer.id}
User role: {customer.encryptionKey}