mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
29 lines
727 B
TypeScript
29 lines
727 B
TypeScript
import React from 'react';
|
|
|
|
import { config } from '@grafana/runtime';
|
|
import { Page } from 'app/core/components/Page/Page';
|
|
import { contextSrv } from 'app/core/core';
|
|
|
|
import UserInviteForm from './UserInviteForm';
|
|
|
|
export function UserInvitePage() {
|
|
const subTitle = (
|
|
<>
|
|
Send invitation or add existing Grafana user to the organization.
|
|
<span className="highlight-word"> {contextSrv.user.orgName}</span>
|
|
</>
|
|
);
|
|
|
|
const navId = config.featureToggles.topnav ? 'global-users' : 'users';
|
|
|
|
return (
|
|
<Page navId={navId} pageNav={{ text: 'Invite user' }} subTitle={subTitle}>
|
|
<Page.Contents>
|
|
<UserInviteForm />
|
|
</Page.Contents>
|
|
</Page>
|
|
);
|
|
}
|
|
|
|
export default UserInvitePage;
|