import { DEFAULT_AI_MODEL_ID, useStore } from '../store/useStore';

export function resetStore() {
  useStore.setState({
    isAuthenticated: false,
    token: null,
    projects: [],
    currentProject: null,
    activeModule: 'workspace',
    activeTool: 'move',
    aiModel: DEFAULT_AI_MODEL_ID,
    frames: [],
    currentFrameIndex: 0,
    annotations: [],
    masks: [],
    selectedMaskIds: [],
    maskHistory: [],
    maskFuture: [],
    templates: [],
    activeTemplateId: null,
    activeClassId: null,
    activeClass: null,
    isLoading: false,
    error: null,
  });
}
