File size: 587 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import styled from 'styled-components';
import NewMessageForm from './NewMessageForm';

const StyledNewMessageWrapper = styled.div`
  margin: 0 20px;
`;

const StyledContainer = styled.div`
  border-top: 1px solid hsla(0, 0%, 100%, 0.06);
  margin-bottom: 30px;
  padding-top: 20px;
`;

const NewMessageWrapper = ({ channelName, isPrivate }) => (
  <StyledNewMessageWrapper>
    <StyledContainer>
      <NewMessageForm channelName={channelName} isPrivate={isPrivate} />
    </StyledContainer>
  </StyledNewMessageWrapper>
);

export default NewMessageWrapper;