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 %>} />
`}>Edit this <%= human_name.downcase %> {' | '} Back to <%= human_name.pluralize.downcase %>
`} as="button" method="delete" > Destroy this <%= human_name.downcase %>
) }