             return S.Search.pending
         case .complete:
             return S.Search.complete
+        case .text(_):
+            return ""
         }
     }
 

}

extension SearchHeaderView : UISearchBarDelegate {
    func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
        print("did end")
    }


    func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
        print("textdid change: \(searchText)")
    }

    func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
        print("search button clicked")
    }

}

    private func setData() {
        backgroundColor = .whiteTint
        searchBar.backgroundImage = UIImage()
        searchBar.delegate = self
        cancel.setTitle(S.Button.cancel, for: .normal)
        cancel.tap = { [weak self] in
            self?.filters = []
            self?.searchBar.resignFirstResponder()
            self?.didCancel?()
        }
