@ichaingo/footer 1.5.21 → 1.5.23

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAqD7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAqD7B"}
package/dist/index.js CHANGED
@@ -1,42 +1,52 @@
1
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
1
+ 'use client';
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
3
  import c from "@ichaingo/image";
3
- import a from "@ichaingo/link";
4
- import { useLocale as o } from "next-intl";
5
- import t from "@ichaingo/translation";
6
- import { Mail as i } from "lucide-react";
7
- function h() {
8
- const r = o();
9
- return /* @__PURE__ */ e("footer", { className: "md:bg-module text-xs w-full p-3 mt-3", children: /* @__PURE__ */ l("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
10
- /* @__PURE__ */ l("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
4
+ import r from "@ichaingo/link";
5
+ import { useLocale as i } from "next-intl";
6
+ import l from "@ichaingo/translation";
7
+ import { Mail as s } from "lucide-react";
8
+ import { useState as n, useEffect as f } from "react";
9
+ function m() {
10
+ const [a, o] = n("");
11
+ return f(() => {
12
+ o((/* @__PURE__ */ new Date()).getFullYear().toString());
13
+ }, []), a;
14
+ }
15
+ function N() {
16
+ const a = i();
17
+ return /* @__PURE__ */ e("footer", { className: "md:bg-module text-xs w-full p-3 mt-3", children: /* @__PURE__ */ t("div", { className: "max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3", children: [
18
+ /* @__PURE__ */ t("div", { className: "w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between", children: [
11
19
  /* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
12
- /* @__PURE__ */ l("div", { className: "text-subtitle", children: [
13
- iChatGo Present ",
14
- /* @__PURE__ */ e(t, { value: "allRightsReserved", parentKey: "footer" })
20
+ /* @__PURE__ */ t("div", { className: "text-subtitle", children: [
21
+ "© ",
22
+ m(),
23
+ " iChatGo ",
24
+ /* @__PURE__ */ e(l, { value: "allRightsReserved", parentKey: "footer" })
15
25
  ] })
16
26
  ] }),
17
- /* @__PURE__ */ l("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
18
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
19
- /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "product", parentKey: "footer" }) }),
20
- /* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ e(a, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ e(t, { value: "tokenList", parentKey: "footer" }) }) })
27
+ /* @__PURE__ */ t("div", { className: "flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2", children: [
28
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
29
+ /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "product", parentKey: "footer" }) }),
30
+ /* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ e(r, { href: "/token-list", baseUrl: process.env.NEXT_PUBLIC_BASE_URL, children: /* @__PURE__ */ e(l, { value: "tokenList", parentKey: "footer" }) }) })
21
31
  ] }),
22
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
23
- /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "contactUs", parentKey: "footer" }) }),
24
- /* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ l(a, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
25
- /* @__PURE__ */ e(i, { className: "w-4 h-4 mr-1" }),
32
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
33
+ /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "contactUs", parentKey: "footer" }) }),
34
+ /* @__PURE__ */ e("div", { className: "text-subtitle flex flex-col gap-3", children: /* @__PURE__ */ t(r, { href: "mailto:contact@ichatgo.ai", className: "flex items-center", children: [
35
+ /* @__PURE__ */ e(s, { className: "w-4 h-4 mr-1" }),
26
36
  "contact@ichatgo.com"
27
37
  ] }) })
28
38
  ] }),
29
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
30
- /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "company", parentKey: "footer" }) }),
31
- /* @__PURE__ */ l("div", { className: "text-subtitle flex flex-col gap-3", children: [
32
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${r}/privacy-policy.html`, children: /* @__PURE__ */ e(t, { value: "privacyPolicy", parentKey: "footer" }) }),
33
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${r}/terms-of-service.html`, children: /* @__PURE__ */ e(t, { value: "termsOfService", parentKey: "footer" }) }),
34
- /* @__PURE__ */ e(a, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${r}`, children: /* @__PURE__ */ e(t, { value: "aboutUs", parentKey: "footer" }) })
39
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
40
+ /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(l, { value: "company", parentKey: "footer" }) }),
41
+ /* @__PURE__ */ t("div", { className: "text-subtitle flex flex-col gap-3", children: [
42
+ /* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${a}/privacy-policy.html`, children: /* @__PURE__ */ e(l, { value: "privacyPolicy", parentKey: "footer" }) }),
43
+ /* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_PROTOCOL_URL}/${a}/terms-of-service.html`, children: /* @__PURE__ */ e(l, { value: "termsOfService", parentKey: "footer" }) }),
44
+ /* @__PURE__ */ e(r, { href: `${process.env.NEXT_PUBLIC_OFFICIAL_URL}/${a}`, children: /* @__PURE__ */ e(l, { value: "aboutUs", parentKey: "footer" }) })
35
45
  ] })
36
46
  ] })
37
47
  ] })
38
48
  ] }) });
39
49
  }
40
50
  export {
41
- h as default
51
+ N as default
42
52
  };
package/dist/year.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export default function Year(): string;
2
+ //# sourceMappingURL=year.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"year.d.ts","sourceRoot":"","sources":["../src/year.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,IAAI,IAKX,MAAM,CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/footer",
3
- "version": "1.5.21",
3
+ "version": "1.5.23",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "lucide-react": "0.539.0",
25
25
  "react": "19.1.1",
26
26
  "next-intl": "4.6.1",
27
- "@ichaingo/image": "1.5.21",
28
- "@ichaingo/translation": "1.5.21",
29
- "@ichaingo/link": "1.5.21"
27
+ "@ichaingo/image": "1.5.23",
28
+ "@ichaingo/link": "1.5.23",
29
+ "@ichaingo/translation": "1.5.23"
30
30
  }
31
31
  }
package/src/index.tsx CHANGED
@@ -4,6 +4,7 @@ import LinkBar from '@ichaingo/link';
4
4
  import { useLocale } from 'next-intl';
5
5
  import Translation from '@ichaingo/translation';
6
6
  import { Mail } from 'lucide-react';
7
+ import Year from './year';
7
8
  export default function Footer() {
8
9
  const locale = useLocale();
9
10
  return (
@@ -11,7 +12,7 @@ export default function Footer() {
11
12
  <div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">
12
13
  <div className="w-full md:w-1/2 flex flex-col py-3 md:py-0 gap-3 md:gap-0 justify-between">
13
14
  <ImageBar src={`${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`} width={116} height={32} objectFit='contain'></ImageBar>
14
- <div className='text-subtitle'>&copy; iChatGo Present <Translation value="allRightsReserved" parentKey='footer' /></div>
15
+ <div className='text-subtitle'>&copy; {Year()} iChatGo <Translation value="allRightsReserved" parentKey='footer' /></div>
15
16
  </div>
16
17
  <div className="flex flex-col md:flex-row justify-between shrink-0 w-full md:w-1/2">
17
18
  <div className="flex flex-col gap-3 py-3 md:py-0">
package/src/year.tsx ADDED
@@ -0,0 +1,11 @@
1
+ 'use client'
2
+
3
+ import { useEffect, useState } from "react";
4
+
5
+ export default function Year() {
6
+ const [year, setYear] = useState<string>('');
7
+ useEffect(() => {
8
+ setYear(new Date().getFullYear().toString());
9
+ }, []);
10
+ return year as string;
11
+ }