'use client'

import { Tenant, User } from '@/payload-types'
import useGlobal from '@/stores'

type Props = {
  user?: User
  tenant?: Tenant
}

const DashboardPageClient = (props?: Props) => {
  const { user, tenant } = useGlobal()
  return (
    <div className="mx-auto h-24 w-full max-w-3xl rounded-xl bg-muted/50">
      <p>Testing Dashboard Zustand Data Here</p>
      <p>{user?.email}</p>
      <p>{tenant?.name}</p>
    </div>
  )
}

export default DashboardPageClient
