import type Collection from '#models/collection'; import { Link } from '@inertiajs/react'; import Footer from '~/components/footer/footer'; import DashboardLayout from '~/components/layouts/dashboard_layout'; // type DashboardPageProps = InferPageProps type DashboardPageProps = { collections: Collection[]; }; export default function DashboardPage({ collections }: DashboardPageProps) { console.log(collections); return ( Add collection {collections.map((collection) => (
  • {collection.name}
  • ))}