import { InferPageProps } from '@adonisjs/inertia/types'; import ContentLayout from '~/components/layouts/content_layout'; import useUser from '~/hooks/use_user'; import type AppsController from '../../app/controllers/apps_controller'; export default function Home(_: InferPageProps) { const { isAuthenticated, user } = useUser(); return (
AdonisJS x Inertia x React
Learn more about AdonisJS and Inertia.js by visiting the{' '} AdonisJS documentation. {isAuthenticated ? 'Authenticated' : 'Not authenticated'}
{JSON.stringify(user, null, 2)}
); }