%= react_component "Toast", { notice: flash[:notice], error: flash[:error] } %> <% if Rails.env.test? && flash.any? %>