@0xchain/header 1.1.0-beta.6 → 1.1.0-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +51 -35
- package/dist/lib/Drawer.js +41 -16
- package/dist/lib/Explorer.js +61 -50
- package/dist/lib/Logo.js +74 -17
- package/dist/lib/Nav.js +213 -68
- package/dist/lib/Products.js +89 -0
- package/dist/lib/Right.js +20 -15
- package/dist/lib/Setting/SettingBody.js +44 -36
- package/dist/lib/Setting/index.js +45 -14
- package/dist/lib/User/Logout.js +13 -13
- package/dist/lib/User/MainTrigger.js +33 -23
- package/dist/lib/User/Mobile.js +22 -22
- package/dist/lib/User/Pc.js +24 -22
- package/dist/lib/User/SignIn.js +16 -15
- package/dist/lib/User/index.js +23 -20
- package/dist/lib/authProfile.js +34 -0
- package/dist/lib/context.js +24 -0
- package/dist/lib/events.js +13 -15
- package/package.json +38 -22
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present 0xchain
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
|
|
4
4
|
export declare function emitUserEvent(eventName: string, data?: any): void;
|
|
5
5
|
|
|
6
|
-
declare function HeaderBar({ extra, children, className, hideNews, hideLogin, source }: HeaderBarProps): Promise<JSX.Element>;
|
|
6
|
+
declare function HeaderBar({ extra, children, className, hideNews, hideLogin, source, brand }: HeaderBarProps): Promise<JSX.Element>;
|
|
7
7
|
export default HeaderBar;
|
|
8
8
|
|
|
9
9
|
export declare interface HeaderBarProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -12,8 +12,17 @@ export declare interface HeaderBarProps extends default_2.HTMLAttributes<HTMLDiv
|
|
|
12
12
|
hideNews?: boolean;
|
|
13
13
|
hideLogin?: boolean;
|
|
14
14
|
source?: HeaderSource;
|
|
15
|
+
/** 品牌标识:iChatGo(默认)或 CHAINDIGG */
|
|
16
|
+
brand?: HeaderBrand;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
/**
|
|
20
|
+
* 品牌标识
|
|
21
|
+
* - "iChatGo": iChatGo 品牌(默认)
|
|
22
|
+
* - "CHAINDIGG": CHAINDIGG 品牌
|
|
23
|
+
*/
|
|
24
|
+
export declare type HeaderBrand = "iChatGo" | "CHAINDIGG";
|
|
25
|
+
|
|
17
26
|
export declare enum HeaderSource {
|
|
18
27
|
EXPLORER = "explorer",
|
|
19
28
|
CHAT = "chat",
|
package/dist/index.js
CHANGED
|
@@ -1,46 +1,62 @@
|
|
|
1
|
-
import { jsxs
|
|
2
|
-
import { twMerge
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { cookies
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import request from "@0xchain/request";
|
|
4
|
+
import Right, { HeaderSource } from "./lib/Right.js";
|
|
5
|
+
import Logo from "./lib/Logo.js";
|
|
6
|
+
import { cookies } from "next/headers";
|
|
7
|
+
import { HeaderProvider } from "./lib/context.js";
|
|
8
|
+
import { createSessionFromCookieGetter } from "@0xchain/auth";
|
|
9
|
+
import { USER_EVENTS, emitUserEvent, onUserEvent } from "./lib/events.js";
|
|
10
|
+
async function HeaderBar({
|
|
11
|
+
extra,
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
hideNews = false,
|
|
15
|
+
hideLogin = false,
|
|
16
|
+
source = HeaderSource.DEFAULT,
|
|
17
|
+
brand = "iChatGo"
|
|
18
|
+
}) {
|
|
19
|
+
let userInfo = {
|
|
11
20
|
data: {}
|
|
12
21
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
if (brand !== "CHAINDIGG") {
|
|
23
|
+
try {
|
|
24
|
+
const cookieStore = await cookies();
|
|
25
|
+
const session = createSessionFromCookieGetter(
|
|
26
|
+
(key) => cookieStore.get(key)?.value ?? null
|
|
27
|
+
);
|
|
28
|
+
if (session.isLoggedIn) {
|
|
29
|
+
try {
|
|
30
|
+
userInfo = await request.get("/v2/users/profile", {
|
|
31
|
+
baseURL: process.env.AUTH_INNER_API_URL
|
|
32
|
+
});
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error(error);
|
|
35
|
+
userInfo = { data: {} };
|
|
36
|
+
}
|
|
22
37
|
}
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
} catch {
|
|
39
|
+
userInfo = { data: {} };
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
42
|
+
return /* @__PURE__ */ jsxs(HeaderProvider, { brand, children: [
|
|
43
|
+
/* @__PURE__ */ jsxs("div", { className: twMerge("sticky left-0 right-0 top-0 bg-background h-16 z-999", source === HeaderSource.CHAT ? "hidden md:block flex-1" : "block", className), children: [
|
|
44
|
+
/* @__PURE__ */ jsxs("div", { className: "md:bg-card h-13 text-center flex flex-wrap justify-between items-center gap-2 md:gap-10 px-4", children: [
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: twMerge("items-center gap-6", source === HeaderSource.CHAT ? "hidden md:flex" : "flex"), children: [
|
|
46
|
+
/* @__PURE__ */ jsx(Logo, {}),
|
|
47
|
+
children
|
|
32
48
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ jsx(Right, { hideNews, hideLogin, user: userInfo?.data || {} })
|
|
34
50
|
] }),
|
|
35
|
-
|
|
51
|
+
extra
|
|
36
52
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: twMerge(source === HeaderSource.CHAT ? "block md:hidden" : "hidden"), children: /* @__PURE__ */ jsx(Right, { hideNews, source, hideLogin, user: userInfo?.data || {} }) })
|
|
38
54
|
] });
|
|
39
55
|
}
|
|
40
56
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
HeaderSource,
|
|
58
|
+
USER_EVENTS,
|
|
59
|
+
HeaderBar as default,
|
|
60
|
+
emitUserEvent,
|
|
61
|
+
onUserEvent
|
|
46
62
|
};
|
package/dist/lib/Drawer.js
CHANGED
|
@@ -1,21 +1,46 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx
|
|
3
|
-
import
|
|
4
|
-
import { Menu
|
|
5
|
-
import
|
|
6
|
-
import { useState
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import RcDrawer from "rc-drawer";
|
|
4
|
+
import { Menu, X } from "lucide-react";
|
|
5
|
+
import Nav from "./Nav.js";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { useIsChaindigg } from "./context.js";
|
|
8
|
+
function Drawer({
|
|
9
|
+
hideLogin = false,
|
|
10
|
+
hideNews = false,
|
|
11
|
+
user
|
|
12
|
+
}) {
|
|
13
|
+
const isChaindigg = useIsChaindigg();
|
|
14
|
+
const [open, setOpen] = useState(false);
|
|
15
|
+
if (!open) {
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
Menu,
|
|
18
|
+
{
|
|
19
|
+
onClick: () => setOpen(true),
|
|
20
|
+
size: 32,
|
|
21
|
+
style: { color: "var(--foreground)" },
|
|
22
|
+
className: "md:hidden bg-card rounded-lg p-[4px]"
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
const handleClose = (e) => {
|
|
27
|
+
e?.preventDefault();
|
|
28
|
+
e?.stopPropagation();
|
|
29
|
+
setOpen(false);
|
|
13
30
|
};
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
RcDrawer,
|
|
33
|
+
{
|
|
34
|
+
open,
|
|
35
|
+
placement: "right",
|
|
36
|
+
className: `block md:hidden fixed top-0 bottom-0 left-0 right-0 z-1001 p-2 bg-card ${isChaindigg ? "bg-background" : "bg-background/70 h-screen"}`,
|
|
37
|
+
children: /* @__PURE__ */ jsxs("div", { className: `w-full overflow-y-auto p-3 bg-card rounded-lg ${isChaindigg ? "max-h-full" : "max-h-[calc(100svh-16px)]"}`, children: [
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end items-center p-2", children: /* @__PURE__ */ jsx(X, { size: 24, style: { color: "var(--foreground)" }, onClick: (e) => handleClose(e) }) }),
|
|
39
|
+
/* @__PURE__ */ jsx(Nav, { onClick: (e) => handleClose(e), hideLogin, hideNews, user })
|
|
40
|
+
] })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
18
43
|
}
|
|
19
44
|
export {
|
|
20
|
-
|
|
45
|
+
Drawer as default
|
|
21
46
|
};
|
package/dist/lib/Explorer.js
CHANGED
|
@@ -1,94 +1,105 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs
|
|
3
|
-
import
|
|
4
|
-
import { Dropdown
|
|
5
|
-
import { useState
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import Translation from "@0xchain/translation";
|
|
4
|
+
import { Dropdown } from "antd";
|
|
5
|
+
import { useState, useEffect } from "react";
|
|
6
|
+
import request from "@0xchain/request";
|
|
7
|
+
import BetterLink from "@0xchain/better-link";
|
|
8
|
+
import ImageBar from "@0xchain/image";
|
|
9
|
+
import { Accordion, AccordionItem, AccordionTrigger } from "@0xchain/ui/accordion";
|
|
10
|
+
function Explorer({ onClick = () => void 0, onExpandChange }) {
|
|
11
|
+
const { gotoExplorer } = BetterLink();
|
|
12
|
+
const [list, setList] = useState([]);
|
|
13
|
+
const [accordionValue, setAccordionValue] = useState("");
|
|
14
|
+
const getList = async () => {
|
|
15
|
+
try {
|
|
16
|
+
const res = await request.get("/api/v2/chains/all-chain-list/basic");
|
|
17
|
+
setList(Array.isArray(res.data) ? res.data : []);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
console.error(error);
|
|
20
|
+
setList([]);
|
|
21
|
+
}
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
const handleClick = (e, item) => {
|
|
24
|
+
e?.preventDefault();
|
|
25
|
+
e?.stopPropagation();
|
|
26
|
+
onClick?.();
|
|
27
|
+
setAccordionValue("");
|
|
28
|
+
const url = gotoExplorer({ chain: item.chainSymbol });
|
|
29
|
+
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || "";
|
|
30
|
+
window.location.href = `${baseUrl}${url}`;
|
|
31
|
+
};
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
getList();
|
|
24
34
|
}, []);
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
return /* @__PURE__ */ t(
|
|
35
|
+
const renderItemContent = (item) => {
|
|
36
|
+
return /* @__PURE__ */ jsxs(
|
|
28
37
|
"div",
|
|
29
38
|
{
|
|
30
39
|
className: "w-full h-full flex items-center gap-2 py-2 cursor-pointer font-medium",
|
|
31
40
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
42
|
+
ImageBar,
|
|
34
43
|
{
|
|
35
|
-
src:
|
|
44
|
+
src: item?.chainIconUrl ? item?.chainIconUrl : `//cdn.ichaingo.com/module/cryptos/${item?.chain?.toLowerCase()?.replace(" ", "-")}.png?format=auto&width=20&height=20`,
|
|
36
45
|
className: "w-5 h-5",
|
|
37
46
|
objectFit: "contain"
|
|
38
47
|
}
|
|
39
48
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: item?.chainSymbol })
|
|
41
50
|
]
|
|
42
51
|
}
|
|
43
52
|
);
|
|
44
53
|
};
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
54
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
55
|
+
/* @__PURE__ */ jsx("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx(
|
|
56
|
+
Dropdown,
|
|
48
57
|
{
|
|
49
58
|
getPopupContainer: () => document.body,
|
|
50
59
|
classNames: {
|
|
51
60
|
root: "w-50"
|
|
52
61
|
},
|
|
53
|
-
arrow: { pointAtCenter:
|
|
62
|
+
arrow: { pointAtCenter: true },
|
|
54
63
|
placement: "bottom",
|
|
55
64
|
menu: {
|
|
56
|
-
items:
|
|
57
|
-
label:
|
|
58
|
-
key:
|
|
59
|
-
onClick: (
|
|
65
|
+
items: list.map((item) => ({
|
|
66
|
+
label: renderItemContent(item),
|
|
67
|
+
key: item.chainSymbol,
|
|
68
|
+
onClick: (info) => handleClick(info.domEvent, item)
|
|
60
69
|
}))
|
|
61
70
|
},
|
|
62
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ jsx("div", { className: "whitespace-nowrap flex items-center gap-1 rounded-lg", children: /* @__PURE__ */ jsx(Translation, { value: "title", parentKey: "browser" }) })
|
|
63
72
|
}
|
|
64
73
|
) }),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
e.preventDefault()
|
|
74
|
+
/* @__PURE__ */ jsx("div", { className: "md:hidden w-full", children: /* @__PURE__ */ jsxs("div", { onClick: (e) => {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
e.stopPropagation();
|
|
67
77
|
}, children: [
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
Accordion,
|
|
70
80
|
{
|
|
71
81
|
type: "single",
|
|
72
|
-
collapsible:
|
|
82
|
+
collapsible: true,
|
|
73
83
|
className: "w-full",
|
|
74
|
-
value:
|
|
75
|
-
onValueChange: (
|
|
76
|
-
|
|
84
|
+
value: accordionValue,
|
|
85
|
+
onValueChange: (value) => {
|
|
86
|
+
setAccordionValue(value);
|
|
87
|
+
onExpandChange?.(!!value);
|
|
77
88
|
},
|
|
78
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ jsx(AccordionItem, { value: "explorer", className: "border-0", children: /* @__PURE__ */ jsx(AccordionTrigger, { className: "rounded-lg font-medium h-11 w-full flex py-2 justify-between items-center hover:no-underline focus-visible:ring-0 focus-visible:ring-offset-0", children: /* @__PURE__ */ jsx("div", { className: "flex w-full justify-between items-center", children: /* @__PURE__ */ jsx("span", { className: "text-foreground", children: /* @__PURE__ */ jsx(Translation, { value: "title", parentKey: "browser" }) }) }) }) })
|
|
79
90
|
}
|
|
80
91
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
82
93
|
"div",
|
|
83
94
|
{
|
|
84
95
|
className: "grid transition-[grid-template-rows] duration-300 ease-in-out",
|
|
85
|
-
style: { gridTemplateRows:
|
|
86
|
-
children: /* @__PURE__ */
|
|
96
|
+
style: { gridTemplateRows: accordionValue ? "1fr" : "0fr" },
|
|
97
|
+
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "mt-3 rounded-lg flex flex-col gap-2 max-h-[60vh] overflow-auto", children: list.map((item) => /* @__PURE__ */ jsx("div", { className: "w-full", onClick: (e) => handleClick(e, item), children: renderItemContent(item) }, item.chainSymbol)) }) })
|
|
87
98
|
}
|
|
88
99
|
)
|
|
89
100
|
] }) })
|
|
90
101
|
] });
|
|
91
102
|
}
|
|
92
103
|
export {
|
|
93
|
-
|
|
104
|
+
Explorer as default
|
|
94
105
|
};
|
package/dist/lib/Logo.js
CHANGED
|
@@ -1,23 +1,80 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { twMerge
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
)
|
|
10
|
-
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import ImageBar from "@0xchain/image";
|
|
4
|
+
import LinkBar from "@0xchain/link";
|
|
5
|
+
import { twMerge } from "tailwind-merge";
|
|
6
|
+
import { useIsChaindigg } from "./context.js";
|
|
7
|
+
function Logo() {
|
|
8
|
+
const isChaindigg = useIsChaindigg();
|
|
9
|
+
if (isChaindigg) {
|
|
10
|
+
return /* @__PURE__ */ jsxs(
|
|
11
|
+
LinkBar,
|
|
12
|
+
{
|
|
13
|
+
suppressHydrationWarning: true,
|
|
14
|
+
href: `/explorer`,
|
|
15
|
+
baseUrl: "",
|
|
16
|
+
className: twMerge("w-auto shrink-0 block cursor-pointer"),
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
ImageBar,
|
|
20
|
+
{
|
|
21
|
+
className: "block dark:hidden",
|
|
22
|
+
src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2026/01/07/695dcb36c177e.png`,
|
|
23
|
+
width: 154,
|
|
24
|
+
height: 32,
|
|
25
|
+
alt: "logo",
|
|
26
|
+
objectFit: "contain",
|
|
27
|
+
priority: true
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
ImageBar,
|
|
32
|
+
{
|
|
33
|
+
className: "hidden dark:block",
|
|
34
|
+
src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2026/01/07/695dcf43c95d8.png`,
|
|
35
|
+
width: 154,
|
|
36
|
+
height: 32,
|
|
37
|
+
alt: "logo",
|
|
38
|
+
objectFit: "contain",
|
|
39
|
+
priority: true
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
LinkBar,
|
|
11
48
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
49
|
+
suppressHydrationWarning: true,
|
|
50
|
+
href: `/`,
|
|
51
|
+
baseUrl: process.env.NEXT_PUBLIC_APP_URL,
|
|
52
|
+
className: twMerge("w-auto shrink-0 block cursor-pointer"),
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
ImageBar,
|
|
56
|
+
{
|
|
57
|
+
className: "block dark:hidden",
|
|
58
|
+
src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2026/04/01/69ccb9c05c2c6.png`,
|
|
59
|
+
width: 136,
|
|
60
|
+
alt: "logo",
|
|
61
|
+
priority: true
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
ImageBar,
|
|
66
|
+
{
|
|
67
|
+
className: "hidden dark:block",
|
|
68
|
+
src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2026/04/01/69ccb9bd7787f.png`,
|
|
69
|
+
width: 136,
|
|
70
|
+
alt: "logo",
|
|
71
|
+
priority: true
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
18
75
|
}
|
|
19
|
-
)
|
|
76
|
+
);
|
|
20
77
|
}
|
|
21
78
|
export {
|
|
22
|
-
|
|
79
|
+
Logo as default
|
|
23
80
|
};
|