import { makeStyles, Typography } from "@material-ui/core"; import clsx from "clsx"; import { ReactChild } from "react"; import { COLORS } from "../muiTheme"; const useStyles = makeStyles((theme) => ({ centeredContainer: { marginBottom: theme.spacing(24), textAlign: "center", width: "100%", }, linearGradient: { background: `linear-gradient(to left, ${COLORS.blue}, ${COLORS.green});`, WebkitBackgroundClip: "text", backgroundClip: "text", WebkitTextFillColor: "transparent", MozBackgroundClip: "text", MozTextFillColor: "transparent", }, subtitle: { marginTop: theme.spacing(2), }, })); export default function HeaderText({ children, white, small, subtitle, }: { children: ReactChild; white?: boolean; small?: boolean; subtitle?: ReactChild; }) { const classes = useStyles(); return (
{children} {subtitle ? ( {subtitle} ) : null}
); }