lms/bootstrap/ssr/assets/layout-bIFdCvlm.js
2025-12-15 12:26:23 +01:00

74 lines
3.4 KiB
JavaScript

import { jsx, jsxs } from "react/jsx-runtime";
import { B as Button } from "./button-CdJZJLGw.js";
import { C as Card } from "./card-B-gBwpxd.js";
import { S as ScrollArea } from "./scroll-area-CDdrLubh.js";
import { S as Sheet, a as SheetTrigger, b as SheetContent } from "./sheet-BOQ-e9_C.js";
import { u as useScreen } from "./use-screen-B7SDA5zE.js";
import { L as LandingLayout } from "./landing-layout-Cned6N12.js";
import { g as getQueryParams } from "./route-DlE7FdTW.js";
import { usePage } from "@inertiajs/react";
import { ListFilter } from "lucide-react";
import { useState } from "react";
import BlogFilter from "./blog-filter-C33R3Xeu.js";
import "@radix-ui/react-slot";
import "class-variance-authority";
import "./utils-DLCPGU0v.js";
import "clsx";
import "tailwind-merge";
import "@radix-ui/react-scroll-area";
import "@radix-ui/react-dialog";
import "./index-CzkkaexN.js";
import "./app-logo-DWyi5bLn.js";
import "lucide-react/dynamic";
import "./main-BKBelQb-.js";
import "next-themes";
import "sonner";
import "./dropdown-menu-msun3TP8.js";
import "@radix-ui/react-dropdown-menu";
import "./use-auth-8FvJer_G.js";
import "./appearance-BJIqrZL5.js";
import "./language-mewnB-2r.js";
import "./separator-CSqU-rrB.js";
import "@radix-ui/react-separator";
import "./notification-Bg6IzWOo.js";
import "./popover-Cv6Hz_y0.js";
import "@radix-ui/react-popover";
import "date-fns";
import "./profile-toggle-DX74bufz.js";
import "./avatar-C8iCpF5R.js";
import "@radix-ui/react-avatar";
import "nanoid";
import "./search-input-hiWHUNfw.js";
import "./debounce-ZFxqVthq.js";
import "./radio-group-Wf8uu9ZY.js";
import "@radix-ui/react-radio-group";
const Layout = ({ children }) => {
const { url, props } = usePage();
const { category } = props;
const [open, setOpen] = useState(false);
getQueryParams(url);
const { screen } = useScreen();
return /* @__PURE__ */ jsx(LandingLayout, { customizable: false, children: /* @__PURE__ */ jsxs("div", { className: "container flex items-start gap-6 py-6", children: [
screen > 768 && /* @__PURE__ */ jsx(Card, { className: "sticky top-24 w-64 p-4", children: /* @__PURE__ */ jsx(BlogFilter, {}) }),
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
/* @__PURE__ */ jsx("div", { className: "mb-6 flex items-center justify-between", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
screen < 768 && /* @__PURE__ */ jsxs(Sheet, { open, onOpenChange: setOpen, children: [
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "icon", variant: "outline", children: /* @__PURE__ */ jsx(ListFilter, { className: "h-5 w-5" }) }) }),
/* @__PURE__ */ jsx(SheetContent, { side: "left", className: "border-border w-[220px]", children: /* @__PURE__ */ jsx(ScrollArea, { className: "h-full", children: /* @__PURE__ */ jsx(BlogFilter, { setOpen }) }) })
] }),
/* @__PURE__ */ jsxs("div", { children: [
/* @__PURE__ */ jsxs("h2", { className: "text-2xl font-bold capitalize", children: [
category ? category == null ? void 0 : category.name : "All",
" Blogs"
] }),
category && category.description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-sm", children: category == null ? void 0 : category.description })
] })
] }) }),
children
] })
] }) });
};
export {
Layout as default
};