import{z as d}from"./utils-BG9r0vUw.js";import{d as i}from"./paths-DUnCMbSI.js";import{a as n,c as o}from"./components-DYcSRfpk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6b0c6b91-3196-419b-b8e8-8db592b90c39",e._sentryDebugIdIdentifier="sentry-dbid-6b0c6b91-3196-419b-b8e8-8db592b90c39")}catch{}})();const a=d.enum(["grid","list"]),u=()=>{const e=n({key:"This key ensures that all instances of `useGridStyle` are in sync"}),t=o("root");return{gridStyle:a.safeParse(e.formData?.get("gridStyle")).data??t?.gridStyle??"list",setGridStyle:s=>e.submit({gridStyle:s},{action:i,method:"POST"})}};export{a as g,u};
