/**
 * User Settings Store for Presi
 *
 * This store syncs settings with mana-core-auth and provides:
 * - Global settings that apply to all apps
 * - Per-app overrides for customization
 * - localStorage caching for offline support
 */

import { createUserSettingsStore } from '@manacore/shared-theme';
import { auth } from './auth.svelte';

const MANA_AUTH_URL = 'http://localhost:3001';

export const userSettings = createUserSettingsStore({
	appId: 'presi',
	authUrl: MANA_AUTH_URL,
	getAccessToken: () => auth.getAccessToken(),
});
