import { FunctionalComponent } from "preact" ; import { html } from 'htm/preact' ; const HeaderView = ( props ) => { const { title , action } = props ; return html `
    <div class="px-4 py-3 has-text-weight-bold is-size-5">
      <p style="overflow: hidden; text-overflow: ellipsis;">
        <a class="mr-2" onClick=${ action }>
          <span id="goBack">
            <i class="fas fa-chevron-left"></i>
          </span>
        </a>
        ${ title }
      </p>
    </div>
  ` ; } ; export default HeaderView ;