_ = require 'underscore' React = require 'react' {ListTabular, MultiselectList, InjectedComponent} = require 'nylas-component-kit' {timestamp, subject} = require './formatting-utils' {Actions, FocusedContentStore, DatabaseStore} = require 'nylas-exports' DraftListStore = require './draft-list-store' EmptyState = require './empty-state' class DraftList extends React.Component @displayName: 'DraftList' @containerRequired: false componentWillMount: => snippet = (html) => return "" unless html and typeof(html) is 'string' try @draftSanitizer ?= document.createElement('div') @draftSanitizer.innerHTML = html[0..400] text = @draftSanitizer.innerText text[0..200] catch return "" c1 = new ListTabular.Column name: "Name" width: 200 resolver: (draft) =>