<%= t(".heading") %>

<%= t(".added") %>
<% if flash[:key] %> <% elsif flash[:notice] %>
<%= lucide_icon('info') %> <%= flash[:notice] %>
<% elsif flash[:error] %>
<%= lucide_icon('x-circle') %> <%= flash[:error] %>
<% end %> <%= form_with(url: keys_path, method: :post, class: 'join join-vertical w-full') do |form| %>
<%= lucide_icon('key') %>
<%= form.submit t('.add'), class: 'btn btn-sm' %>
secret
<% if @actor.scopes.any? %>
scopes
<% @actor.scopes.each do |scope| %>
<% end %> <% end %>
<% end%> <% if @actor.keys.any? %>
<% @actor.keys.latest.each do |key| %> <% end %>
<%= time_ago_in_words(key.created_at) %> ago <%= form_with(url: keys_path, method: :delete) do |form| %> <% end %>
<% end %>