export default function <%= inertia_component_name %>({ <%= singular_table_name %> }) { return (
<% attributes.reject(&:password_digest?).each do |attribute| -%>

<%= attribute.human_name %>: <% if attribute.attachment? -%> {<%= singular_table_name %>.<%= attribute.column_name %> && ( .<%= attribute.column_name %>.url}>{<%= singular_table_name %>.<%= attribute.column_name %>.filename} )}

<% elsif attribute.attachments? -%>

{<%= singular_table_name %>.<%= attribute.column_name %>.map((file, i) => (
{file.filename}
))} <% else -%> {<%= singular_table_name %>.<%= attribute.column_name %>?.toString()}

<% end -%> <% end -%>
) }