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

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