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

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