mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
feat(builtins): add hideHeader and hideComposer props to RoomViewProps and renderRoomView
This commit is contained in:
@@ -14,6 +14,14 @@ export interface RoomViewProps {
|
|||||||
* The ID of the room to render.
|
* The ID of the room to render.
|
||||||
*/
|
*/
|
||||||
roomId?: string;
|
roomId?: string;
|
||||||
|
/*
|
||||||
|
* If true, the room header will be hidden.
|
||||||
|
*/
|
||||||
|
hideHeader?: boolean;
|
||||||
|
/*
|
||||||
|
* If true, the message composer will be hidden.
|
||||||
|
*/
|
||||||
|
hideComposer?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,6 +46,7 @@ export interface BuiltinsApi {
|
|||||||
*
|
*
|
||||||
* @alpha
|
* @alpha
|
||||||
* @param roomId - Id of the room
|
* @param roomId - Id of the room
|
||||||
|
* @param props - Additional props to pass to the room view
|
||||||
*/
|
*/
|
||||||
renderRoomView(roomId: string): React.ReactNode;
|
renderRoomView(roomId: string, props?: Omit<RoomViewProps, "roomId">): React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user