%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/common/components/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/common/components/Title.jsx

import React from "react";
import { node, object, number } from "prop-types";
import {
  Box,
  Typography,
} from "@material-ui/core";
import { withStyles } from "@material-ui/core/styles";

const styles = (theme) => ({
  wrapper: {
  },
  title: {
    fontSize: "24px",
    color: theme.palette.text.primary,
    fontWeight: "600",
  },
});

function Title({ classes, children, paddingBottom }) {
  return (
    <Box
      className={classes.wrapper}
      paddingBottom={paddingBottom}
    >
      <Typography component="h1" className={classes.title}>
        {children}
      </Typography>
    </Box>
  );
}

Title.propTypes = {
  classes: object.isRequired,
  children: node.isRequired,
  paddingBottom: number,
};

Title.defaultProps = {
  paddingBottom: 2,
};

export default withStyles(styles)(Title);

Zerion Mini Shell 1.0