Add wysisyg composer (can only send message, enable behind a labs flag)

This commit is contained in:
Florian Duros 2022-10-05 12:01:41 +02:00
parent 16c3efead5
commit bfb1638ff3
No known key found for this signature in database
GPG key ID: 9700AA5870258A0B
11 changed files with 401 additions and 15 deletions

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { createContext } from "react";
import { createContext, useContext } from "react";
import { IRoomState } from "../components/structures/RoomView";
import { Layout } from "../settings/enums/Layout";
@ -68,3 +68,6 @@ const RoomContext = createContext<IRoomState>({
});
RoomContext.displayName = "RoomContext";
export default RoomContext;
export function useRoomContext() {
return useContext(RoomContext);
}