%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/js/common/components/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/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);