RoomPresenter.js
528 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;
.Header {
position: fixed;
top: 0;
}
`;
export default ({ roomArray }) => {
return (
<Wrapper>
<Header text={"KhuChat"}></Header>
<RoomList roomArray={roomArray}></RoomList>
</Wrapper>
);
};