import { createAsyncThunk } from '@reduxjs/toolkit';
import Api from '@northern.tech/store/api/general-api';
const api_preferences_url = '/settingsApi/preferences';

export const getPreferences = createAsyncThunk(
  'preferences/get',
  async () => {
    const { data } = await Api.get(api_preferences_url);
    return data;
  }
);
