<script>
import {authenticatedRequest} from "@/components/session/authenticatedRequest.vue";
import {handleEconomicError} from "@/components/request/HandleEconomicError.vue";
import { SessionUser } from "@/components/session/token/SessionUser.vue";

/**
 * The Economic -> Layouts object
 */
export const Layouts = {
    get: async () => {
      return authenticatedRequest(
          "/economic/layouts",
          "GET")
    },
    set: async (layout) => {
      return SessionUser.superUser.modules.economic.config.layouts.set(layout);
    },
};

</script>