export function readNotificationPrefs(store) {
	const defaults = { pushs: true, voice: true, shock: true }
	try {
		const user = store?.state?.user
		if (!user || typeof user !== 'object') return defaults
		return {
			pushs: user.pushs !== false,
			voice: user.voice !== false,
			shock: user.shock !== false
		}
	} catch (_) {
		return defaults
	}
}
