import { Link, Head } from '@inertiajs/react' import <%= inertia_component_name %> from './<%= inertia_component_name %>' export default function Show({ <%= singular_table_name %>, flash }) { const onDestroy = (e) => { if (!confirm('Are you sure you want to delete this <%= human_name.downcase %>?')) { e.preventDefault() } } return ( <> #${<%= singular_table_name %>.id}`} />
{flash.notice && (

{flash.notice}

)}

<%= human_name %> #{<%= singular_table_name %>.id}

<<%= inertia_component_name %> <%= singular_table_name %>={<%= singular_table_name %>} /> `} className="mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" > Edit this <%= human_name.downcase %> Back to <%= human_name.pluralize.downcase %>
`} onClick={onDestroy} as="button" method="delete" className="mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" > Destroy this <%= human_name.downcase %>
) }