-
-
Notifications
You must be signed in to change notification settings - Fork 370
Expand file tree
/
Copy pathKeyCreatedItem.tsx
More file actions
29 lines (27 loc) · 781 Bytes
/
Copy pathKeyCreatedItem.tsx
File metadata and controls
29 lines (27 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { default as React, FunctionComponent } from 'react';
import { T } from '@tolgee/react';
import {
NotificationItem,
NotificationItemProps,
} from 'tg.component/layout/Notifications/NotificationItem';
import { LINKS } from 'tg.constants/links';
type KeyCreatedItemProps = NotificationItemProps;
export const KeyCreatedItem: FunctionComponent<KeyCreatedItemProps> = ({
notification,
...props
}) => {
return (
<NotificationItem
notification={notification}
destinationUrl={LINKS.PROJECT_TRANSLATIONS.build({
projectId: notification.project!.id,
})}
{...props}
>
<b>{notification.originatingUser?.name}</b>
{'\u205F'}
<T keyName="notifications-key-created" />
{'\u205F'}
</NotificationItem>
);
};