()
| 42 | // back home. A fetch would follow that chain invisibly inside the XHR and |
| 43 | // leave the page where it was; the browser navigation is the logout. |
| 44 | const signOut = () => { |
| 45 | trackEvent("signed_out"); |
| 46 | const form = document.createElement("form"); |
| 47 | form.method = "POST"; |
| 48 | form.action = AUTH_PATHS.logout; |
| 49 | document.body.appendChild(form); |
| 50 | form.submit(); |
| 51 | }; |
| 52 | |
| 53 | export function Shell(props: { readonly content?: React.ReactNode }) { |
| 54 | const items = useAdminNavItems(navItems, adminNavItems); |
nothing calls this directly
no test coverage detected