import { mountInertiaRoot } from './bootstrap' import React from 'react' import { createInertiaApp } from '@inertiajs/react' import ArtworkPage from './Pages/ArtworkPage' createInertiaApp({ resolve: (name) => { const pages = { ArtworkPage } return pages[name] }, setup({ el, App, props }) { mountInertiaRoot(el, App, props) }, })