// Thin re-export — audio prefs storage now lives in `@djangocfg/ui-core/hooks`.
// Existing direct consumers (`AudioToggle`) keep working through this wrapper.

'use client';

import { createAudioPrefsStore, type AudioPrefsState } from '@djangocfg/ui-core/hooks';

import type { ChatAudioEvent } from './types';

const STORAGE_KEY = 'djangocfg-chat-audio:prefs';

export type ChatAudioPrefsState = AudioPrefsState<ChatAudioEvent>;

export const useChatAudioPrefs = createAudioPrefsStore<ChatAudioEvent>(STORAGE_KEY);
