import { Story } from './types' ; export const listItem = ( index , item ) : DocumentFragment => document . createRange ( ) . createContextualFragment ( `<li class="list-item">
      <div class="count">${ index + 1 }.</div>
      ${ item . url ? `<a href=${ item . url } target="_blank" rel="noopener">${ item ?. title }</a>` : `<div>${ item ?. title }</div>` }
    </li>` ) ;