import { Head, Link } from '@inertiajs/react' import { Fragment } from 'react' import <%= inertia_component_name %> from './<%= inertia_component_name %>' export default function Index({ <%= plural_table_name %>, flash }) { return ( <>
{flash.notice && (

{flash.notice}

)}

<%= human_name.pluralize %>

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

`} className="ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" > Show this <%= human_name.downcase %>

))}
) }