border-radius"> <% if book.editable? %>
<%= image_tag "lock.svg", aria: { hidden: true }, size: 36, class: "colorize--black" %> <%= form_with model: book, url: book_publication_path(book), data: { controller: "form", action: "change->form#submit" }, html: { contents: true } do |form| %> <% end %> <%= image_tag "world.svg", aria: { hidden: true }, size: 36, class: "colorize--black" %>
<% end %> <% if book.published? %>
<% public_url = book_slug_url(book) %>
<%= tag.button class: "btn", data: { action: "dialog#open" } do %> <%= image_tag "qr-code.svg", aria: { hidden: "true" }, size: 24, class: "colorize--black" %> Show public link QR code <% end %> <%= qr_code_image(public_url) %>
<%= button_to_copy_to_clipboard(public_url) do %> <%= image_tag "copy-paste.svg", aria: { hidden: "true" }, size: 24, class: "colorize--black" %> Copy public link <% end %> <%= web_share_button(public_url, "Link to join Writebook", "Hit this link to join me in Writebook and start writing.") do %> <%= image_tag "share.svg", aria: { hidden: "true" }, size: 24, class: "colorize--black" %> Share public link <% end %> <% if book.editable? %> <%= link_to edit_book_publication_path(book), class: "btn" do %> <%= image_tag "pencil.svg", aria: { hidden: "true" }, size: 24, class: "colorize--black" %> Edit link URL <% end %> <% end %>
<% end %>