class SourcediffComponentPreview < ViewComponent::Preview
  # Preview at http://HOST:PORT/rails/view_components/sourcediff_component/preview
  def preview
    bs_request = BsRequest.last
    action = bs_request.bs_request_actions.last
    render(SourcediffComponent.new(bs_request: bs_request, action: action, diff_not_cached: false))
  end
end
