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