import{jsx as r,jsxs as i}from"react/jsx-runtime";import{a as n,S as c,b as d,B as h,d as f,e as u}from"./ui-components-B24mpb8o.js";import{u as x}from"./use-screen-CJI_WQZy.js";import{L as N}from"./landing-layout-D335TIc1.js";import{g}from"./route-D0xh7FtZ.js";import{usePage as b}from"@inertiajs/react";import{ListFilter as S}from"lucide-react";import{useState as v}from"react";import m from"./blog-filter-CEZi0q3-.js";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./index-CUpX7x90.js";import"./app-logo-CAnM-q9p.js";import"lucide-react/dynamic";import"./main-Cv60h411.js";import"./theme-colors-CLpwvDr4.js";import"./use-auth-cj50aT3v.js";import"./appearance-zLWEcDPI.js";import"./language-79bZLpyc.js";import"./notification-BBQVVMqD.js";import"date-fns";import"./profile-toggle-E46Ne1rK.js";import"nanoid";import"./search-input-Cc2brlhX.js";import"./debounce-CWHP_ANh.js";const gr=({children:p})=>{const{url:s,props:a}=b(),{category:t}=a,[l,e]=v(!1);g(s);const{screen:o}=x();return r(N,{customizable:!1,children:i("div",{className:"container flex items-start gap-6 py-6",children:[o>768&&r(n,{className:"sticky top-24 w-64 p-4",children:r(m,{})}),i("div",{className:"flex-1",children:[r("div",{className:"mb-6 flex items-center justify-between",children:i("div",{className:"flex items-center gap-2",children:[o<768&&i(c,{open:l,onOpenChange:e,children:[r(d,{asChild:!0,children:r(h,{size:"icon",variant:"outline",children:r(S,{className:"h-5 w-5"})})}),r(f,{side:"left",className:"border-border w-[220px]",children:r(u,{className:"h-full",children:r(m,{setOpen:e})})})]}),i("div",{children:[i("h2",{className:"text-2xl font-bold capitalize",children:[t?t==null?void 0:t.name:"All"," Blogs"]}),t&&t.description&&r("p",{className:"text-muted-foreground mt-1 text-sm",children:t==null?void 0:t.description})]})]})}),p]})]})})};export{gr as default};
