         onClick: => @props.onToggle?(true)
       ],
         "Search for #{Factlink.Global.t.factlinks} (beta)"
+
+
+ReactSearchFacts = React.createClass
+  displayName: 'ReactSearchFacts'
+
+  render: ->
+    return _div() unless @props.opened
+
+    _div ['add-comment-search-facts'],
+      ReactFactSearch
+        model: @_factSearchResults()
+        onInsert: @props.onInsert
+
+  _factSearchResults: ->
+    unless @____factSearchResults
+      recently_viewed_facts = new RecentlyViewedFacts
+      recently_viewed_facts.fetch()
+
+      @____factSearchResults = new FactSearchResults [],
+        fact_id: @props.fact.id
+        recently_viewed_facts: recently_viewed_facts
+
+    @____factSearchResults
+
 
 window.ReactAddComment = React.createBackboneClass
   displayName: 'ReactAddComment'

      content: $.trim(@state.text)
      created_by: currentUser.toJSON()

  _factSearchResults: ->
    unless @____factSearchResults
      recently_viewed_facts = new RecentlyViewedFacts
      recently_viewed_facts.fetch()

      @____factSearchResults = new FactSearchResults [],
        fact_id: @model().fact.id
        recently_viewed_facts: recently_viewed_facts

    @____factSearchResults

          ReactSearchLink
            opened: @state.searchOpened
            onToggle: (opened) => @setState searchOpened: opened
          ReactSearchFacts
            opened: @state.searchOpened
            fact: @model()
            onInsert: @_onSearchInsert

  _onTextareaChange: (text) ->
    @setState(text: text)
