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

export interface GetSettingsQuery { type: 'get-settings'; }

export interface SettingsResult {
  alarmSound: string;
  notifsEnabled: boolean;
  ntfyTopic: string;
}

export function createGetSettingsHandler(state: AppState) {
  return (_query: GetSettingsQuery): SettingsResult => ({
    alarmSound: state.alarmSound,
    notifsEnabled: state.notifsEnabled,
    ntfyTopic: state.ntfyTopic,
  });
}
