mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #146 from element-hq/midhun/multiroom/render-notification-decoration
Add API to render notification decoration from EW
This commit is contained in:
commit
44d8f89754
@ -59,6 +59,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
|
||||
|
||||
// @alpha
|
||||
export interface BuiltinsApi {
|
||||
renderNotificationDecoration(roomId: string): React.ReactNode;
|
||||
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
|
||||
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
||||
}
|
||||
|
||||
@ -53,4 +53,12 @@ export interface BuiltinsApi {
|
||||
* @param props - Additional props to pass to the room view
|
||||
*/
|
||||
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
||||
|
||||
/**
|
||||
* Render notification decoration component from element-web.
|
||||
*
|
||||
* @alpha
|
||||
* @param roomId - Id of the room
|
||||
*/
|
||||
renderNotificationDecoration(roomId: string): React.ReactNode;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user