import { create } from 'zustand' import type { RecipientChannel } from '~/lib/api/types' type PrivateChannelsStore = { channels: RecipientChannel[] setChannels: (channels: RecipientChannel[]) => void } export const usePrivateChannelsStore = create()( (set, get) => ({ channels: [], setChannels: (channels: RecipientChannel[]) => set({ channels }), }) )