{organization && }
{includeSidebar && }
{children}
);
if (error) {
const errorBody =
errorType === ORGANIZATION_FETCH_ERROR_TYPES.ORG_NO_ACCESS ? (
// We can still render when an org can't be loaded due to 401. The
// backend will handle redirects when this is a problem.
mainBody
) : errorType === ORGANIZATION_FETCH_ERROR_TYPES.ORG_NOT_FOUND ? (