You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: status_message_component_preview.rb
    path of file: ./repos/open-build-service/src/api/spec/components/previews
    
    the code of the file until where you have to start completion: class StatusMessageComponentPreview < ViewComponent::Preview
  # Preview at http://HOST:PORT/rails/view_components/status_message_component/as_anonymous_user
  def as_anonymous_user
    rende
    
  def as_admin_user
    # TODO: run_as doesn't change anything somehow... it's still the anonymous user in the session when rendering the view component (so the delete icon is not displayed)
    User.admins.first.run_as do
      render(StatusMessageComponent.new(status_message: StatusMessage.first))
    end
  end
end