diff --git a/src/lib/layout/index.tsx b/src/lib/layout/index.tsx
index 040237688..82fb13616 100644
--- a/src/lib/layout/index.tsx
+++ b/src/lib/layout/index.tsx
@@ -1,9 +1,13 @@
-import { Grid, GridItem } from "@chakra-ui/react";
+import { Box, Button, Flex, Grid, GridItem, Text } from "@chakra-ui/react";
+import dayjs from "dayjs";
+import pluginUtc from "dayjs/plugin/utc";
+import Link from "next/link";
import { useRouter } from "next/router";
import type { ReactNode } from "react";
import { useEffect, useMemo } from "react";
-import { useMobile, useNavContext } from "lib/app-provider";
+import { useInitia, useMobile, useNavContext } from "lib/app-provider";
+import { CustomIcon } from "lib/components/icon";
import { scrollToTop } from "lib/utils";
import Footer from "./Footer";
@@ -12,6 +16,8 @@ import MobileHeader from "./mobile/MobileHeader";
import Navbar from "./navbar";
import SubHeader from "./subheader";
+dayjs.extend(pluginUtc);
+
type LayoutProps = {
children: ReactNode;
};
@@ -20,6 +26,7 @@ const Layout = ({ children }: LayoutProps) => {
const router = useRouter();
const isMobile = useMobile();
const { isExpand, setIsExpand } = useNavContext();
+ const isInitia = useInitia();
const defaultRow = "64px 48px 1fr";
const mode = useMemo(() => {
@@ -47,47 +54,94 @@ const Layout = ({ children }: LayoutProps) => {
}
}, [router.asPath, router.query.tab]);
+ const date = dayjs
+ .utc(new Date("2025-03-18T03:00:00Z"))
+ .local()
+ .format("MMMM DD, YYYY, h:mm A (UTCZ)");
+
return (
-
-
- {mode.header}
-
- {!isMobile && (
- <>
-
+ {isInitia && (
+
+
+ Initia Wallet extension is being deprecated. Existing extension
+ users must migrate before {date} to be eligible for future
+ incentives.
+
+
- {mode.subHeader}
-
-
-
-
- >
+ }
+ >
+ Migrate Wallet
+
+
+
)}
-
-
- {children}
-
-
-
-
+
+
+ {mode.header}
+
+ {!isMobile && (
+ <>
+
+ {mode.subHeader}
+
+
+
+
+ >
+ )}
+
+
+ {children}
+
+
+
+
+
);
};