import { Head, Link } from '@inertiajs/react' import <%= inertia_component_name %> from './<%= inertia_component_name %>' import { <%= inertia_model_type %> } from './types' interface ShowProps { <%= singular_table_name %>: <%= inertia_model_type %> flash: { notice?: string } } export default function Show({ <%= singular_table_name %>, flash }: ShowProps) { 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 %>
`} as="button" method="delete" className="mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" > Destroy this <%= human_name.downcase %>
) }