Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

502 B
Raw Blame
import { create } from 'zustand';

export type SyncStatus = 'idle' | 'running' | 'error';

interface SyncStore {
  status: SyncStatus;
  lastError: Error | null;
  lastSyncAt: string | null;
  subscriptionRequired: boolean;
  policyBlocked: boolean;
  set: (patch: Partial<SyncStore>) => void;
}

export const useSyncStore = create<SyncStore>((set) => ({
  status: 'idle',
  lastError: null,
  lastSyncAt: null,
  subscriptionRequired: false,
  policyBlocked: false,
  set: (patch) => set(patch),
}));