IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
720B

  1. //
  2. // Copyright (C) Stanislaw Adaszewski, 2020
  3. // Contact: s.adaszewski@gmail.com
  4. // Website: https://adared.ch/wba
  5. // License: GNU Affero General Public License, Version 3
  6. //
  7. import { h, Component } from 'preact';
  8. class WBInlineSearch extends Component {
  9. render({ textSearch, navigate }) {
  10. return (
  11. <div class="form-inline my-2 my-lg-0">
  12. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"
  13. value={ textSearch } onchange={ navigate ? (e => navigate(e.target.value)) : null } />
  14. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  15. </div>
  16. );
  17. }
  18. }
  19. export default WBInlineSearch;