MCPcopy Create free account
hub / github.com/Roy3838/Observer / loadLayout

Function loadLayout

app/src/hooks/useAgentGridLayout.ts:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function loadLayout(): LayoutItem[] {
58 try {
59 const raw = localStorage.getItem(LAYOUT_KEY);
60 return raw ? JSON.parse(raw) : [];
61 } catch {
62 return [];
63 }
64}
65
66export function useAgentGridLayout(agentIds: string[]) {
67 // measureBeforeMount so `width` is never a wrong guess (e.g. desktop-sized

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected