diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx
index 65809dc..e9ff21a 100644
--- a/src/components/Breadcrumb/Breadcrumb.tsx
+++ b/src/components/Breadcrumb/Breadcrumb.tsx
@@ -6,6 +6,9 @@ import Link from "next/link";
import MUILink from "@mui/material/Link";
import { usePathname } from "next/navigation";
import { useTranslation } from "react-i18next";
+import Clock from "./Clock";
+import { Grid } from "@mui/material";
+import { I18nProvider } from "@/i18n";
const pathToLabelMap: { [path: string]: string } = {
"": "Overview",
@@ -39,34 +42,42 @@ const Breadcrumb = () => {
// const { t } = useTranslation("customer");
+
return (
-
- {segments.map((segment, index) => {
- const href = segments.slice(0, index + 1).join("/");
- const label = pathToLabelMap[href] || segment;
+
+
+
+ {segments.map((segment, index) => {
+ const href = segments.slice(0, index + 1).join("/");
+ const label = pathToLabelMap[href] || segment;
- if (index === segments.length - 1) {
- return (
-
- {label}
- {/* {t(label)} */}
-
- );
- } else {
- return (
-
- {label}
-
- );
- }
- })}
-
+ if (index === segments.length - 1) {
+ return (
+
+ {label}
+ {/* {t(label)} */}
+
+ );
+ } else {
+ return (
+
+ {label}
+
+ );
+ }
+ })}
+
+
+
+
+
+
);
};
diff --git a/src/components/Breadcrumb/Clock.tsx b/src/components/Breadcrumb/Clock.tsx
new file mode 100644
index 0000000..8ddf42b
--- /dev/null
+++ b/src/components/Breadcrumb/Clock.tsx
@@ -0,0 +1,32 @@
+"use client"
+import { useState, useEffect, useLayoutEffect } from 'react';
+import Typography from "@mui/material/Typography";
+import { useTranslation } from 'react-i18next';
+
+const Clock = () => {
+ const {
+ i18n: { language },
+ } = useTranslation();
+ const [currentDateTime, setCurrentDateTime] = useState(new Date());
+
+ useLayoutEffect(() => {
+ const timer = setInterval(() => {
+ setCurrentDateTime(new Date());
+ }, 1000);
+
+ return () => {
+ clearInterval(timer);
+ };
+ }, []);
+
+ const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true };
+ const formattedDateTime = new Intl.DateTimeFormat(language, options).format(currentDateTime)
+
+ return (
+
+ {formattedDateTime}
+
+ );
+};
+
+export default Clock;