{{/*
Reusable Toggle Button Component
Parameters:
- id: (string) Unique identifier for the button group (e.g. "comments").
Used to generate IDs: {id}-toggle, {id}-section, {id}-count.
- title: (string) Tooltip title.
- icon: (string) Path to the icon image.
- countId: (string, optional) Override for count element ID. Defaults to "{id}-count".
- sectionId: (string, optional) Override for section element ID. Defaults to "{id}-section".
- buttonId: (string, optional) Override for button element ID. Defaults to "{id}-toggle".
- group: (string, optional) Mutual exclusion group name. If provided, opening this toggle will close others in the same group.
*/}}
{{ $id := .id }}
{{ $buttonId := default (printf "%s-toggle" $id) .buttonId }}
{{ $sectionId := default (printf "%s-section" $id) .sectionId }}
{{ $countId := default (printf "%s-count" $id) .countId }}
{{ $group := .group }}