forked from imodeljs/imodeljs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppStatusBar.tsx
35 lines (31 loc) · 1.35 KB
/
AppStatusBar.tsx
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
30
31
32
33
34
35
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as React from "react";
import {
ConfigurableCreateInfo,
StatusBarWidgetControl,
ActivityCenterField,
MessageCenterField,
ToolAssistanceField,
StatusBarWidgetControlArgs,
} from "@bentley/ui-framework";
/**
* Status Bar example widget
*/
export class AppStatusBarWidget extends StatusBarWidgetControl {
constructor(info: ConfigurableCreateInfo, options: any) {
super(info, options);
}
public getReactNode(controlArgs: StatusBarWidgetControlArgs): React.ReactNode {
const { isInFooterMode, onOpenWidget, openWidget, toastTargetRef } = controlArgs;
return (
<>
<ToolAssistanceField isInFooterMode={isInFooterMode} onOpenWidget={onOpenWidget} openWidget={openWidget} />
<MessageCenterField isInFooterMode={isInFooterMode} onOpenWidget={onOpenWidget} openWidget={openWidget} targetRef={toastTargetRef} />
<ActivityCenterField isInFooterMode={isInFooterMode} onOpenWidget={onOpenWidget} openWidget={openWidget} />
</>
);
}
}