@ichaingo/footer 1.5.5 → 1.5.6-beta

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;AAM1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAsD7B"}
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import c from "@ichaingo/image";
2
+ import o from "@ichaingo/image";
3
3
  import a from "@ichaingo/link";
4
- import { useLocale as o } from "next-intl";
4
+ import { useTolgee as i } from "@ichaingo/tolgee/client";
5
5
  import t from "@ichaingo/translation";
6
- import { Mail as i } from "lucide-react";
7
- function h() {
8
- const r = o();
6
+ import { Mail as s } from "lucide-react";
7
+ function x() {
8
+ const { getLanguage: c } = i(), r = c();
9
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
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: [
11
- /* @__PURE__ */ e(c, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
11
+ /* @__PURE__ */ e(o, { src: `${process.env.NEXT_PUBLIC_CDN_URL}/uploads/2025/11/26/6926f275c68ed.png`, width: 116, height: 32, objectFit: "contain" }),
12
12
  /* @__PURE__ */ l("div", { className: "text-subtitle", children: [
13
13
  "©2025 iChatGo ",
14
14
  /* @__PURE__ */ e(t, { value: "allRightsReserved", parentKey: "footer" })
@@ -22,7 +22,7 @@ function h() {
22
22
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 py-3 md:py-0", children: [
23
23
  /* @__PURE__ */ e("div", { className: "text-title", children: /* @__PURE__ */ e(t, { value: "contactUs", parentKey: "footer" }) }),
24
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" }),
25
+ /* @__PURE__ */ e(s, { className: "w-4 h-4 mr-1" }),
26
26
  "contact@ichatgo.com"
27
27
  ] }) })
28
28
  ] }),
@@ -38,5 +38,5 @@ function h() {
38
38
  ] }) });
39
39
  }
40
40
  export {
41
- h as default
41
+ x as default
42
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/footer",
3
- "version": "1.5.5",
3
+ "version": "1.5.6-beta",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "dependencies": {
24
24
  "lucide-react": "0.539.0",
25
25
  "react": "19.1.1",
26
- "next-intl": "4.6.1",
27
- "@ichaingo/image": "1.5.5",
28
- "@ichaingo/translation": "1.5.5",
29
- "@ichaingo/link": "1.5.5"
26
+ "@ichaingo/image": "1.5.6-beta",
27
+ "@ichaingo/translation": "1.5.6-beta",
28
+ "@ichaingo/tolgee": "1.5.6-beta",
29
+ "@ichaingo/link": "1.5.6-beta"
30
30
  }
31
31
  }
package/src/index.tsx CHANGED
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import ImageBar from '@ichaingo/image';
3
3
  import LinkBar from '@ichaingo/link';
4
- import { useLocale } from 'next-intl';
4
+ import { useTolgee } from '@ichaingo/tolgee/client';
5
5
  import Translation from '@ichaingo/translation';
6
6
  import { Mail } from 'lucide-react';
7
7
  export default function Footer() {
8
- const locale = useLocale();
8
+ const { getLanguage } = useTolgee();
9
+ const locale = getLanguage();
9
10
  return (
10
11
  <footer className='md:bg-module text-xs w-full p-3 mt-3'>
11
12
  <div className="max-w-300 flex flex-col md:flex-row justify-center mx-auto w-full py-3">