1 import { c } from 'ttag';
3 import { useUser } from '@proton/account/user/hooks';
4 import { Href } from '@proton/atoms';
5 import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
7 import TopBanner from './TopBanner';
9 const SubUserTopBanner = () => {
10 const [user] = useUser();
12 if (!user.isSubUser) {
17 <TopBanner className="bg-info">
18 {c('Info').t`You are currently signed in as ${user.Name} (${user.Email}).`}
20 <Href href={getKnowledgeBaseUrl('/manage-public-users-organization')}>{c('Link').t`Learn more`}</Href>
25 export default SubUserTopBanner;