   onInput: (event) =>
     event.persist()
     @debouncedSubmit event
+
+
+  renderFilter: ({ multiselect = false, name, options }) =>
+    el Beatmaps.SearchFilter,
+      filters: @props.filters
+      name: name
+      title: osu.trans("beatmaps.listing.search.filters.#{name}")
+      options: options
+      default: @props.filterDefaults[name]
+      multiselect: multiselect
+      selected: @props.filters[name]
 
 
   renderGuest: =>

        div {}, i className: 'fas fa-angle-down'

      div className: 'beatmapsets-search__advanced',
        el Beatmaps.SearchFilter,
          filters: @props.filters
          name: 'genre'
          title: osu.trans('beatmaps.listing.search.filters.genre')
          options: filters.genres
          default: @props.filterDefaults.genre
          selected: @props.filters.genre

        el Beatmaps.SearchFilter,
          filters: @props.filters
          name: 'language'
          title: osu.trans('beatmaps.listing.search.filters.language')
          options: filters.languages
          default: @props.filterDefaults.language
          selected: @props.filters.language

        el Beatmaps.SearchFilter,
          filters: @props.filters
          name: 'extra'
          title: osu.trans('beatmaps.listing.search.filters.extra')
          options: filters.extras
          multiselect: true
          selected: @props.filters.extra

        el Beatmaps.SearchFilter,
          filters: @props.filters
          name: 'rank'
          title: osu.trans('beatmaps.listing.search.filters.rank')
          options: filters.ranks
          multiselect: true
          selected: @props.filters.rank

        el Beatmaps.SearchFilter,
          filters: @props.filters
          name: 'played'
          title: osu.trans('beatmaps.listing.search.filters.played')
          options: filters.played
          default: @props.filterDefaults.played
          selected: @props.filters.played


  submit: (e) =>

#    along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
###

{div, a, i, input, h1, h2} = ReactDOMFactories
el = React.createElement

class Beatmaps.SearchPanel extends React.PureComponent
