import { usePage } from '@inertiajs/react'; import { InertiaSharedProps } from '@/types'; export default function useTypedPage() { return usePage>(); }