import type { AppState, StateRepository } from '@domain/ports/StateRepository';

export interface ResetStatsCommand { type: 'reset-stats'; }

export function createResetStatsHandler(state: AppState, repo: StateRepository) {
  return (_cmd: ResetStatsCommand): void => {
    state.archivedStats = [];
    state.accouplements = [];
    repo.save(state);
  };
}
