This commit is contained in:
pj committed 2026-06-21 14:37:02 -04:00
1 parent 47710970c2
commit fa1c89af63
7 files changed
+213 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { create } from "zustand";
import { applyWidth, initialWidth, type Width } from "../width";
interface WidthState {
width: Width;
setWidth: (width: Width) => void;
}
export const useWidth = create<WidthState>((set) => ({
width: initialWidth(),
setWidth: (width) => {
applyWidth(width);
set({ width });
},
}));