import { get, put } from './lib'; const emptySettings = {}; export const getSettings = async () => { try { return await get('settings', true); } catch (err) { console.error({ caller: 'getSettings', err }); return emptySettings; } }; export const putSettings = async (settings: any) => { return await put('settings', 'settings', (_: any) => settings, {}, true); };