-
Notifications
You must be signed in to change notification settings - Fork 2
/
ContentDialogManager.tsx
30 lines (27 loc) · 1 KB
/
ContentDialogManager.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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Dialog
*/
import type { CommonProps } from "@itwin/core-react";
import * as React from "react";
import { DialogRendererBase } from "./DialogManagerBase";
import { InternalContentDialogManager as internal } from "./InternalContentDialogManager";
/** ContentDialogRenderer React component renders modeless dialogs.
* @public
*/
export class ContentDialogRenderer extends React.PureComponent<CommonProps> {
constructor(props: CommonProps) {
super(props);
}
public override render(): React.ReactNode {
return (
<DialogRendererBase
{...this.props}
dialogManager={internal.dialogManager}
/>
);
}
}