export type TokenGridSnapSessionState = {
  enabled: boolean;
};

export class TokenGridSnapSessionStore {
  private enabled = false;

  getState(): TokenGridSnapSessionState {
    return { enabled: this.enabled };
  }

  setEnabled(enabled: boolean): TokenGridSnapSessionState {
    this.enabled = Boolean(enabled);
    return this.getState();
  }

  reset(): TokenGridSnapSessionState {
    this.enabled = false;
    return this.getState();
  }
}
