Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
The useState hook was placed after the isLoading/error early returns, violating the Rules of Hooks. First render hit the early return without calling the hook; second render (after data loaded) called it, producing 'more hooks than previous render' — React error #310 and a white screen. Moved const [showTemplateModal] to the state block at the top of the component, alongside the other useState declarations.