frontend: refactor preview

This commit is contained in:
2025-10-19 21:23:35 +02:00
parent ab06205744
commit 3591415d46
4 changed files with 244 additions and 250 deletions
+12
View File
@@ -0,0 +1,12 @@
import React from 'react';
export const AppShellContext = React.createContext(null);
export const useAppShell = () => {
const context = React.useContext(AppShellContext);
if (!context) {
throw new Error('AppShellContext not found. Ensure routes are nested under AppLayout.');
}
return context;
};