"use client"; import Grid from "@mui/material/Grid"; import Paper from "@mui/material/Paper"; import { TFunction } from "i18next"; import { useTranslation } from "react-i18next"; type PageTitleProps = { BigTitle: string; SecondTitle?: string; ThirdTitle?: string; FourthTitle?: string; }; const PageTitle: React.FC = ({ BigTitle, SecondTitle = '', ThirdTitle = '', FourthTitle = ''}) => { const { t } = useTranslation("dashboard"); return (

{BigTitle}

  
  

Overview

 

{">"}

 

{BigTitle}

  {SecondTitle !== '' ?

{">"} 

: ""} {SecondTitle !== '' ?

{SecondTitle} 

: ""} {ThirdTitle !== '' ?

{">"} 

: ""} {ThirdTitle !== '' ?

{ThirdTitle} 

: ""} {FourthTitle !== '' ?

{">"} 

: ""} {FourthTitle !== '' ?

{FourthTitle} 

: ""}
); }; export default PageTitle;