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

ProfileLayout.js 950B

1234567891011121314151617181920212223242526272829303132333435
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import { Content, RightCard, ProfileLayoutContainer, HeaderCard, MiddleCard } from "./ProfileLayout.styled";
  4. import { Grid } from "@mui/material";
  5. const ProfileLayout = (props) => {
  6. return (
  7. <ProfileLayoutContainer>
  8. {props.children}
  9. <Grid container maxHeight maxWidth={1900}>
  10. <MiddleCard item xs={9.5} lg={6.5} xl={6.6} md={6}>
  11. <HeaderCard>
  12. {props.headerCard}
  13. </HeaderCard>
  14. <Content>
  15. {props.content}
  16. </Content>
  17. </MiddleCard>
  18. <RightCard item xs={2.5} lg={3} xl={3} md={3}>
  19. {props.rightCard}
  20. </RightCard>
  21. </Grid>
  22. </ProfileLayoutContainer>
  23. );
  24. };
  25. ProfileLayout.propTypes = {
  26. children: PropTypes.node,
  27. leftCard: PropTypes.node,
  28. content: PropTypes.node,
  29. rightCard: PropTypes.node,
  30. headerCard: PropTypes.node,
  31. };
  32. export default ProfileLayout;