No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

48 líneas
2.1 KiB

  1. "use client";
  2. import Grid from "@mui/material/Grid";
  3. import Paper from "@mui/material/Paper";
  4. import { TFunction } from "i18next";
  5. import { useTranslation } from "react-i18next";
  6. type PageTitleProps = {
  7. BigTitle: string;
  8. SecondTitle?: string;
  9. ThirdTitle?: string;
  10. FourthTitle?: string;
  11. };
  12. const PageTitle: React.FC<PageTitleProps> = ({ BigTitle, SecondTitle = '', ThirdTitle = '', FourthTitle = ''}) => {
  13. const { t } = useTranslation("dashboard");
  14. return (
  15. <Grid item sm>
  16. <div style={{marginTop:20,marginLeft:20}}>
  17. <h1 style={{display:"inline-block",color:"#636363",verticalAlign:"top"}}>{BigTitle}</h1>&nbsp;&nbsp;
  18. <hr color="#D6DCE1" style={{display:"inline-block",width:1,height:35,marginTop:25}} />&nbsp;&nbsp;
  19. <h3 style={{display:"inline-block",color:"#6BAFD8",verticalAlign:"top",marginTop:32}}>Overview</h3>&nbsp;
  20. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{">"}</h3>&nbsp;
  21. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{BigTitle}</h3>&nbsp;
  22. {SecondTitle !== '' ?
  23. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{">"}&nbsp;</h3>
  24. : ""}
  25. {SecondTitle !== '' ?
  26. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{SecondTitle}&nbsp;</h3>
  27. : ""}
  28. {ThirdTitle !== '' ?
  29. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{">"}&nbsp;</h3>
  30. : ""}
  31. {ThirdTitle !== '' ?
  32. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{ThirdTitle}&nbsp;</h3>
  33. : ""}
  34. {FourthTitle !== '' ?
  35. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{">"}&nbsp;</h3>
  36. : ""}
  37. {FourthTitle !== '' ?
  38. <h3 style={{display:"inline-block",color:"#6E6B7B",verticalAlign:"top",marginTop:32}}>{FourthTitle}&nbsp;</h3>
  39. : ""}
  40. </div>
  41. </Grid>
  42. );
  43. };
  44. export default PageTitle;