{% stories search_result with { title: 'Components/search-result' } %}

{% story default with {
    name: 'Search result page',
    args: {
      title: 'Search result item',
      result_title: 'Test Link',
      result_url: 'http://sdc4.ddev.site/node/3',
      }
  } %}
 
  {% set snippet %}
    <strong>Test Link</strong>
  {% endset %}
  
  {% set date = '24 Jan 2025 - 15:22' %}

  {% set user_link %}
    {{ link('admin', path('entity.user.canonical', {'user': 1})) }}
  {% endset %}

{% set info %}
    {{ user_link|raw }} - {{ date }}
{% endset %}

{{ include('tailpine:search-result', { url: result_url, title: result_title, snippet: snippet, info: info  }) }}

{% endstory %}
{% endstories %}