()
| 17 | }); |
| 18 | |
| 19 | function AppLayout() { |
| 20 | const { isMaintenance } = useAppContext(); |
| 21 | |
| 22 | if (isMaintenance) { |
| 23 | return ( |
| 24 | <FullPageEmptyState |
| 25 | className="min-h-screen" |
| 26 | description="We are currently performing maintenance on the system. Please check back later." |
| 27 | icon={ConstructionIcon} |
| 28 | title="Maintenance mode" |
| 29 | > |
| 30 | <a |
| 31 | className={cn(buttonVariants())} |
| 32 | href="https://status.openpanel.dev/" |
| 33 | rel="noopener noreferrer" |
| 34 | target="_blank" |
| 35 | > |
| 36 | Check out our status page |
| 37 | </a> |
| 38 | </FullPageEmptyState> |
| 39 | ); |
| 40 | } |
| 41 | |
| 42 | return ( |
| 43 | <div className="flex h-screen w-full"> |
| 44 | <Sidebar /> |
| 45 | <div className="w-full lg:pl-72 min-w-0 flex-1"> |
| 46 | <div className="fixed top-0 z-10 block h-16 w-full border-b bg-background lg:hidden" /> |
| 47 | <div className="block h-16 lg:hidden" /> |
| 48 | <Outlet /> |
| 49 | </div> |
| 50 | <ChatDrawerSlot /> |
| 51 | </div> |
| 52 | ); |
| 53 | } |
nothing calls this directly
no test coverage detected