You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProfileLayout.js 1.1KB

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