import { Head, Link } from '@inertiajs/react' import <%= inertia_component_name %> from './<%= inertia_component_name %>' import { <%= inertia_model_type %> } from './types' interface IndexProps { <%= plural_table_name %>: <%= inertia_model_type %>[] flash: { notice?: string } } export default function Index({ <%= plural_table_name %>, flash }: IndexProps) { return ( <> {flash.notice &&

{flash.notice}

}

<%= human_name.pluralize %>

{<%= plural_table_name %>.map((<%= singular_table_name %>) => (
.id}> <<%= inertia_component_name %> <%= singular_table_name %>={<%= singular_table_name %>} />

`}>Show this <%= human_name.downcase %>

))}
New <%= human_name.downcase %> ) }