|
@@ -1,6 +1,5 @@
|
|
|
import Link from "next/link";
|
|
import Link from "next/link";
|
|
|
import { Suspense } from "react";
|
|
import { Suspense } from "react";
|
|
|
-import { isObject } from "@/utils/type-guards";
|
|
|
|
|
import { getThemeCustomization } from "@/utils/bagisto";
|
|
import { getThemeCustomization } from "@/utils/bagisto";
|
|
|
import LogoIcon from "@components/common/icons/LogoIcon";
|
|
import LogoIcon from "@components/common/icons/LogoIcon";
|
|
|
import FaceBookIcon from "@components/common/icons/social-icon/FaceBookIcon";
|
|
import FaceBookIcon from "@components/common/icons/social-icon/FaceBookIcon";
|
|
@@ -8,8 +7,6 @@ import InstaGramIcon from "@components/common/icons/social-icon/InstaGramIcon";
|
|
|
import TwitterIcon from "@components/common/icons/social-icon/TwitterIcon";
|
|
import TwitterIcon from "@components/common/icons/social-icon/TwitterIcon";
|
|
|
import Subscribe from "./Subscribe";
|
|
import Subscribe from "./Subscribe";
|
|
|
import FooterMenu from "./FooterMenu";
|
|
import FooterMenu from "./FooterMenu";
|
|
|
-import ServiceContent from "./ServiceContent";
|
|
|
|
|
-import { ThemeCustomizationTranslationEdge } from "@/types/theme/theme-customization";
|
|
|
|
|
const { COMPANY_NAME, SITE_NAME } = process.env;
|
|
const { COMPANY_NAME, SITE_NAME } = process.env;
|
|
|
|
|
|
|
|
export default async function Footer() {
|
|
export default async function Footer() {
|
|
@@ -19,20 +16,11 @@ export default async function Footer() {
|
|
|
"w-full h-6 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700";
|
|
"w-full h-6 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700";
|
|
|
const menu = await getThemeCustomization();
|
|
const menu = await getThemeCustomization();
|
|
|
const copyrightName = COMPANY_NAME || SITE_NAME || "";
|
|
const copyrightName = COMPANY_NAME || SITE_NAME || "";
|
|
|
- const services =
|
|
|
|
|
- menu?.services_content?.themeCustomizations?.edges?.[0]?.node;
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- {isObject(services) && services?.translations?.edges && (
|
|
|
|
|
- <ServiceContent
|
|
|
|
|
- name={services?.name}
|
|
|
|
|
- serviceData={services?.translations?.edges?.map(
|
|
|
|
|
- (edge: ThemeCustomizationTranslationEdge) => edge.node,
|
|
|
|
|
- )}
|
|
|
|
|
- />
|
|
|
|
|
- )}
|
|
|
|
|
- <footer className="hidden lg:block border-t border-neutral-200 text-sm text-neutral-500 dark:border-neutral-700 dark:text-neutral-400">
|
|
|
|
|
|
|
+ <footer className="border-t border-neutral-200 text-sm text-neutral-500 dark:border-neutral-700 dark:text-neutral-400">
|
|
|
<div className="mx-auto flex w-full max-w-screen-2xl flex-col justify-between gap-6 gap-y-6 px-6 py-12 text-sm dark:border-neutral-700 min-[880px]:flex-row min-[880px]:gap-12 min-[880px]:gap-y-20 min-[880px]:px-4">
|
|
<div className="mx-auto flex w-full max-w-screen-2xl flex-col justify-between gap-6 gap-y-6 px-6 py-12 text-sm dark:border-neutral-700 min-[880px]:flex-row min-[880px]:gap-12 min-[880px]:gap-y-20 min-[880px]:px-4">
|
|
|
<div className="flex flex-col gap-[14px]">
|
|
<div className="flex flex-col gap-[14px]">
|
|
|
<Link
|
|
<Link
|