'use client' import { useChannel, type ChannelSubscription } from 'mizan/channels' {% if !type_imports.is_empty() -%} import type { {{ type_imports|join(", ") }} } from './channels' {% endif -%} {% for ch in param_channels -%} export function use{{ ch.pascal_name }}Channel(params: {{ ch.params_type }}): ChannelSubscription<{{ ch.params_type }}, {{ ch.server_message_type }}, {{ ch.client_message_type }}> { return useChannel('{{ ch.name }}', params) } {% endfor -%} {% for ch in paramless_channels -%} export function use{{ ch.pascal_name }}Channel(): ChannelSubscription, {{ ch.server_message_type }}, {{ ch.client_message_type }}> { return useChannel('{{ ch.name }}', {}) } {% endfor -%}