Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

PageTitle.jsx 727B

12345678910111213141516171819202122
  1. import React from "react";
  2. import PropTypes from 'prop-types'
  3. const PageTitle = ({heading, subheading, left, color, pb }) => {
  4. return (
  5. <div className={"flex flex-col gap-8p"+ (left ? " text-left items-start":" text-center items-center") + (color ? " text-dg-secondary" : " ") + (pb ? ' pb-2' :' ')}>
  6. <h6 className={"subheading text-inherit" + (left ? " text-left":" text-center")}>{subheading}</h6>
  7. <h1 className={"heading text-inherit" + (left ? " text-left":" text-center")}>{heading}</h1>
  8. </div>
  9. )
  10. }
  11. PageTitle.propTypes = {
  12. heading: PropTypes.string,
  13. subheading: PropTypes.string,
  14. left: PropTypes.bool,
  15. color: PropTypes.bool,
  16. }
  17. export default PageTitle;