%= render component_tag(x: {data: x_data("imagePicker", {src: src}), ":class": "hasImage && 'has-image'"}) do %>
<%= render Coco::ImageUploader.new(
**uploader_args,
click: false) do %>
<% if blank_state_text? %>
<%= blank_state_text %>
<% end %>
<%= coco_button(theme: :secondary, click: "$parent.openPicker") do %>
Browse your files
<% end %>
<% end %>
<%= coco_button(theme: :text_secondary, icon: :repeat, click: "$parent.replaceImage()") do %>
Replace
<% end %>
<%= coco_button(theme: :text_negative, icon: :trash_2, click: "$parent.clearImage(false)") do %>
Delete
<% end %>
<% end %>