RoomPresenter.js 479 Bytes
import React from "react";
import styled from "styled-components";
import Header from "../../Components/Header";
import RoomList from "../../Components/RoomList";

const Wrapper = styled.div`
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
`;

export default ({ roomArray }) => {
  return (
    <Wrapper>
      <Header text={"KhuChat"}></Header>
      <RoomList roomArray={roomArray}></RoomList>
    </Wrapper>
  );
};