RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/omnichannel/directory/chats/Chat.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import type { IRoom } from '@rocket.chat/core-typings';
import { Box } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import React from 'react';

import RoomOpener from '../../../room/RoomOpener';

type ChatProps = { rid: IRoom['_id'] };

const Chat = ({ rid }: ChatProps): ReactElement => {
    return (
        <Box position='absolute' backgroundColor='surface' width='full' height='full'>
            <RoomOpener type='l' reference={rid} />
        </Box>
    );
};
export default Chat;