@scalar/api-client
Version:
the open source API testing client
27 lines (26 loc) • 964 B
JavaScript
import { defineComponent as s, createElementBlock as n, openBlock as t, normalizeClass as r, unref as e, createVNode as m, createElementVNode as a, renderSlot as f } from "vue";
import c from "../../components/SideNav/SideNav.vue.js";
import d from "../../components/CommandPalette/TheCommandPalette.vue.js";
import { useLayout as i } from "../../hooks/useLayout.js";
const k = /* @__PURE__ */ s({
__name: "MainLayout",
setup(u) {
const { layout: o } = i();
return (l, p) => (t(), n("main", {
class: r(["flex min-h-0 flex-1 flex-col", e(o) === "web" ? "sm:flex-col" : "sm:flex-row"])
}, [
m(c, { class: "sidenav order-last sm:order-none" }),
m(e(d)),
a("div", {
class: r(["flex min-h-0 min-w-0 flex-1 flex-col", {
"border sm:mr-1.5 sm:mb-1.5 sm:rounded-lg sm:*:rounded-lg": e(o) === "desktop"
}])
}, [
f(l.$slots, "default")
], 2)
], 2));
}
});
export {
k as default
};