Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { ChatContent, ChatLayoutContainer } from './ChatLayout.styled';
  4. export const ChatLayout = (props) => {
  5. return (
  6. <ChatLayoutContainer>
  7. {props.children}
  8. <ChatContent maxHeight="xl" spacing={2} justifyContent={"center"} item xs={12} md={10}>
  9. {props.content}
  10. </ChatContent>
  11. </ChatLayoutContainer>
  12. )
  13. }
  14. ChatLayout.propTypes = {
  15. children: PropTypes.node,
  16. content: PropTypes.node,
  17. };
  18. export default ChatLayout;