{#
/**
 * @file
 * Mock data for the Comment component in Storybook.
 */
#}

{% set attributes = create_attribute({
  'class': ['comment-wrapper']
}) %}

{% set title_attributes = create_attribute({
  'class': ['title']
}) %}

{% set comments = '<div class="comment">This is a mock comment.</div>' %}
{% set comment_form = '<form class="comment-form"><textarea></textarea><button type="submit">Submit</button></form>' %}

{% stories comment with { title: 'Components/Fields/Comment' } %}

{% story default with {
  name: 'Default Comment',
  args: {
    attributes: attributes,
    label_hidden: false,
    title_attributes: title_attributes,
    label: 'Comments',
    title_prefix: '',
    title_suffix: '',
    comments: comments,
    comment_form: comment_form,
    field_name: 'comment',
    field_type: 'comment',
    label_display: 'above'
  }
} %}
  {% embed 'tailpine:comment' with {
    attributes: attributes,
    label_hidden: label_hidden,
    title_attributes: title_attributes,
    label: label,
    title_prefix: title_prefix,
    title_suffix: title_suffix,
    comments: comments,
    comment_form: comment_form,
    field_name: field_name,
    field_type: field_type,
    label_display: label_display
  } %}{% endembed %}
{% endstory %}

{% endstories %}