'use client' // AUTO-GENERATED by mizan — do not edit import { useChannel, type ChannelSubscription } from 'mizan/channels' {% if !type_imports.is_empty() -%} import type { {{ type_imports|join(", ") }} } from './channels' {% endif -%} // ── Channel Hooks ───────────────────────────────────────────────────────── {% for ch in channels -%} /** * Hook for the {{ ch.name }} channel. */ {% if ch.has_params -%} export function use{{ ch.pascal_name }}Channel(params: {{ ch.params_type_or_record }}): ChannelSubscription<{{ ch.params_type_or_record }}, {{ ch.django_msg_type_or_never }}, {{ ch.react_msg_type_or_never }}> { return useChannel('{{ ch.name }}', params) } {% else -%} export function use{{ ch.pascal_name }}Channel(): ChannelSubscription, {{ ch.django_msg_type_or_never }}, {{ ch.react_msg_type_or_never }}> { return useChannel('{{ ch.name }}', {}) } {% endif %} {% endfor -%}