{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The calls to action of a post header: share and save side by side, one wide read button, or a wide read button with share and save as icons.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/post-actions.json\n    The calls to action of a post header: share and save side by side, one wide read button, or a wide read button with share and save as icons.\n    Props (p): labels, mode. -#}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_mode = (p.mode ?? 'pair') -%}\n{%- if og_t(og_eq(v_mode, 'pair')) %}\n  {%- set c_3 -%}\n    {%- set c_1 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'share-2', 'size': 16}, with_context = false) }}\n      {{ og_text(og_get(v_labels, ['share'])) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'class': 'gap-2', 'children': c_1}, with_context = false) }}\n    {%- set c_2 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'bookmark', 'size': 16}, with_context = false) }}\n      {{ og_text(og_get(v_labels, ['save'])) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'class': 'gap-2', 'children': c_2}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'attrs': og_attrs(['data-slot', 'post-actions']), 'children': c_3}, with_context = false) }}\n{%- else %}\n  {%- set c_7 -%}\n    {%- set c_4 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'book-open', 'size': 16}, with_context = false) }}\n      {{ og_text(og_get(v_labels, ['read'])) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'class': 'gap-2 flex-1', 'children': c_4}, with_context = false) }}\n    {%- if og_t(og_eq(v_mode, 'icons')) %}\n      {%- set c_5 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'share-2', 'size': 16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'layout': 'icon', 'ariaLabel': og_s(og_get(v_labels, ['share'])), 'children': c_5}, with_context = false) }}\n      {%- set c_6 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'bookmark', 'size': 16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'layout': 'icon', 'ariaLabel': og_s(og_get(v_labels, ['save'])), 'children': c_6}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'attrs': og_attrs(['data-slot', 'post-actions']), 'children': c_7}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/post-actions.html.twig",
      "target": "blocks/post-actions.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "post-actions",
  "registryDependencies": [
    "button",
    "group",
    "lucide-icon",
    "utils"
  ],
  "runtime": "twig",
  "title": "Post Actions",
  "type": "registry:component"
}
